Skip to content

chore: extract coder bin handling to its own file#21916

Merged
spikecurtis merged 1 commit intomainfrom
spike/internal-1300-refactor-site-bin
Feb 6, 2026
Merged

chore: extract coder bin handling to its own file#21916
spikecurtis merged 1 commit intomainfrom
spike/internal-1300-refactor-site-bin

Conversation

@spikecurtis
Copy link
Contributor

@spikecurtis spikecurtis commented Feb 4, 2026

relates to: coder/internal#1300

Refactors the site binary handler routines to their own file. The site.go was getting pretty long and I want to do some refactoring on how the binary handler works.

This PR is literally just moving code from file to file; at the package level nothing is changed.

Copy link
Contributor

@coder-tasks coder-tasks bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

Reviewed the refactoring PR that extracts Coder binary handler code from site.go to a new bin.go file. This is a straightforward code movement with no logic changes.

Approved - The refactoring is clean and follows good separation of concerns. The code has been moved exactly as described with no modifications to logic.

Summary

  • Extracted binary handling functions to site/bin.go
  • Removed unused imports from site.go
  • All functions maintain identical behavior
  • Package-level structure unchanged

Code Quality

  • ✅ All functions moved correctly with no logic changes
  • ✅ Imports properly updated in both files
  • ✅ Comments and documentation preserved
  • ✅ No breaking changes
  • ✅ Follows Go file organization best practices

This refactoring improves code maintainability by reducing the size of site.go and grouping related binary handling functionality together, making future changes easier to implement.

No issues found.

@spikecurtis spikecurtis force-pushed the spike/internal-1300-refactor-site-bin branch 2 times, most recently from 1613bcb to ac49605 Compare February 4, 2026 10:19
@spikecurtis spikecurtis force-pushed the spike/internal-1300-cachecompress-pkg branch from 8eea2e0 to 05358a4 Compare February 4, 2026 10:19
@spikecurtis spikecurtis force-pushed the spike/internal-1300-refactor-site-bin branch from ac49605 to f184efa Compare February 4, 2026 11:50
@spikecurtis spikecurtis force-pushed the spike/internal-1300-cachecompress-pkg branch from 05358a4 to 3a2606c Compare February 4, 2026 11:50
@spikecurtis spikecurtis force-pushed the spike/internal-1300-refactor-site-bin branch from f184efa to e838f7e Compare February 4, 2026 11:50
@spikecurtis spikecurtis force-pushed the spike/internal-1300-cachecompress-pkg branch from 3a2606c to de03035 Compare February 4, 2026 11:50
@spikecurtis spikecurtis changed the base branch from spike/internal-1300-cachecompress-pkg to graphite-base/21916 February 6, 2026 06:12
@spikecurtis spikecurtis force-pushed the spike/internal-1300-refactor-site-bin branch from e838f7e to 678c91a Compare February 6, 2026 06:13
@graphite-app graphite-app bot changed the base branch from graphite-base/21916 to main February 6, 2026 06:13
@spikecurtis spikecurtis force-pushed the spike/internal-1300-refactor-site-bin branch from 678c91a to a5bf33c Compare February 6, 2026 06:13
@spikecurtis spikecurtis merged commit 541f00b into main Feb 6, 2026
26 of 29 checks passed
Copy link
Contributor Author

Merge activity

@spikecurtis spikecurtis deleted the spike/internal-1300-refactor-site-bin branch February 6, 2026 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants