Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go modules #130

Merged
merged 1 commit into from
Jan 9, 2024
Merged

Go modules #130

merged 1 commit into from
Jan 9, 2024

Conversation

webern
Copy link
Contributor

@webern webern commented Jan 9, 2024

Issue number:

Closes: N/A

Description of changes:

find go modules with rust code

Some subtlety in the way GO_MODULES were being found was causing
Bottlerocket builds to fail. Rather than find these with yet more bash
code in Makefile.toml, we should find these using Rust code when the
user is invoking twoliter build variant.

Meanwhile, for twoliter make, we expect these to be passed in (which is
what the Bottlerocket build does).

Testing done:

  • built Bottlerocket
  • built test project1 with alpha sdk and twoliter build variant

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

Some subtlety in the way GO_MODULES were being found was causing
Bottlerocket builds to fail. Rather than find these with yet more bash
code in Makefile.toml, we should find these using Rust code when the
user is invoking twoliter build variant.

Meanwhile, for twoliter make, we expect these to be passed in (which is
what the Bottlerocket build does).
@webern webern requested review from ecpullen and bcressey and removed request for ecpullen January 9, 2024 22:10
@webern webern marked this pull request as ready for review January 9, 2024 22:19
@webern webern merged commit 9ed19b7 into bottlerocket-os:develop Jan 9, 2024
1 check passed
@webern webern deleted the go-modules branch January 9, 2024 23:18
webern added a commit to webern/twoliter that referenced this pull request Jan 10, 2024
In bottlerocket-os#130 1410d5b we startred requiring GO_MODULES to come from the
environment when using twoliter make. This appeared to work because go
mod vendor had been cached when testing. But in fact, we were not taking
the environment variable at all! So this commit fixes it.
webern added a commit that referenced this pull request Jan 10, 2024
In #130 1410d5b we startred requiring GO_MODULES to come from the
environment when using twoliter make. This appeared to work because go
mod vendor had been cached when testing. But in fact, we were not taking
the environment variable at all! So this commit fixes it.
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.

3 participants