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

Respect GO_MODULES environment variable when preparing modules from sources directory #313

Closed
wants to merge 2 commits into from

Conversation

cbgbt
Copy link
Contributor

@cbgbt cbgbt commented Jun 23, 2024

Issue number:

Closes #312

Description of changes:

  • twoliter: allow overriding GO_MODULES
  • docker-go: fix GOPATH to be set after arg parse

Testing done:

  • Provided unit tests pass

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.

@cbgbt
Copy link
Contributor Author

cbgbt commented Jun 23, 2024

I'm pretty sure my tests failed because tests are run concurrently and I'm modifying an environment variable during the test. I'll come up with a fix.

@cbgbt
Copy link
Contributor Author

cbgbt commented Jun 23, 2024

I've decided that testing the environment variable modification in Rust unit tests is a terrible idea if we would like to have a future without flaky tests.

Instead, the environment searching feature is extracted to an additional function which I have tested manually.

@cbgbt cbgbt closed this Oct 3, 2024
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.

twoliter ignores GO_MODULES environment variable
3 participants