Skip to content

Get rid of vendored packages#430

Merged
driv3r merged 5 commits intomainfrom
get-rid-of-vendored-packages
Apr 15, 2026
Merged

Get rid of vendored packages#430
driv3r merged 5 commits intomainfrom
get-rid-of-vendored-packages

Conversation

@driv3r
Copy link
Copy Markdown
Contributor

@driv3r driv3r commented Apr 14, 2026

this should streamline updates and reduce the noise in PRs

@driv3r driv3r requested review from a team and forge33 April 14, 2026 19:51
@binks-code-reviewer
Copy link
Copy Markdown

🤖 Code Review · Skipped — PR has too many files for review (limit: 1000)

@driv3r driv3r changed the base branch from main to logging-improvements-with-zerolog April 14, 2026 19:52
@driv3r driv3r force-pushed the get-rid-of-vendored-packages branch from f12994a to 0dc9503 Compare April 14, 2026 20:16
Copy link
Copy Markdown

@austenLacy austenLacy left a comment

Choose a reason for hiding this comment

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

do we not need to update anything in go.mod?

@driv3r
Copy link
Copy Markdown
Contributor Author

driv3r commented Apr 15, 2026

@austenLacy no, it gets picked up by vendor/modules.txt only. There was some cache issue which caused builds in ruby tests to fail, but this is fixed now.

@driv3r driv3r requested review from a team and austenLacy April 15, 2026 10:55
Base automatically changed from logging-improvements-with-zerolog to main April 15, 2026 11:08
@driv3r driv3r added the dependencies Pull requests that update a dependency file label Apr 15, 2026
driv3r added 5 commits April 15, 2026 14:55
RuntimeError: could not compile ghostferry only shows the Ruby-level
failure; the underlying go build error is lost. This makes it impossible
to diagnose CI failures like 'inconsistent vendoring' from the test log
alone.

- Replace system() with Open3.capture2e so go build stderr is captured.
- Include the captured output in the raised error message.
- Before each build, log GOMOD / GOWORK / GOFLAGS and whether
  vendor/modules.txt is present in the repo root, to pinpoint unexpected
  workspace or vendor-mode activation.
actions/checkout does not always remove previously-tracked files that
were deleted in a later commit. A runner that checked out a commit with
vendor/ and then checks out a commit without it may still find vendor/
on disk, causing Go to auto-activate vendor mode and fail with
'inconsistent vendoring'.

Add GOFLAGS=-mod=mod at workflow level so all jobs explicitly use module
mode regardless of whether a stale vendor/ directory exists on disk.

Also fix an off-by-one in the compile_binary diagnostic: repo_root was
computed 3 levels up from test/helpers/ (reaching the parent of the repo)
instead of 2 levels up (the repo root itself), causing the
vendor/modules.txt presence check to report a false negative.
The go env / vendor/modules.txt diagnostic lines added in the previous
commit have served their purpose. Retain the Open3.capture2e change so
that go build errors remain visible in the test failure message.
@driv3r driv3r force-pushed the get-rid-of-vendored-packages branch from 3cd3fd2 to fb0ca17 Compare April 15, 2026 12:58
@driv3r driv3r merged commit 66830b0 into main Apr 15, 2026
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants