Repository navigation
Find the bootstrapped go compiler - #4392
Merged
vvolkl merged 1 commit intoAug 3, 2026
Merged
Conversation
A go toolchain bootstrapped by ci/bootstrap_golang.sh into the externals install location was not found by find_program in a plain `cmake; make install` workflow. Honor CVMFS_GO_DIR (CMake variable or environment, as exported by ci/build_install_builddeps.sh) and fall back to <externals install location>/go/bin. Suggested-by: Valentin Volkl <[email protected]>
Contributor
|
Current devel as of commit cc6b557 still fails to bootstrap on clean Ubuntu 24.04: |
Contributor
Author
|
This failure happens one step before the change in this PR: on a clean tree the externals bootstrap only creates |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is the first pull request I've sent to CVMFS following the
discussion in #4373. Please let me know if there is anything I missed
during the process.
This applies @vvolkl's suggestion from #4373 as-is: find_program now
honors CVMFS_GO_DIR (CMake variable or environment, as exported by
ci/build_install_builddeps.sh) and falls back to
/go/bin, so a go bootstrapped by
ci/bootstrap_golang.sh is found in a plain
cmake; make installworkflow.
Tested on Ubuntu 24.04 without a system go (ci/bootstrap_golang.sh,
then cmake -DBUILD_GATEWAY=ON -DBUILTIN_EXTERNALS_EXCLUDE=golang_rev2):
configure fails with "go compiler not found" before this change and
finds the bootstrapped go with it; CVMFS_GO_DIR alone also works, a go
on PATH is still found when the hints are empty, and gateway, ducc and
snapshotter all build with the located compiler. I used AI assistance
for testing and drafting; the change itself is unchanged from the
suggestion.