-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
scripts/updatebom: remove unnecessary mod override #19467
base: main
Are you sure you want to change the base?
Conversation
The `GOFLAGS=-mod=mod` environment variable is not required, as that's the default mode. This code was likely copied from the tests, where `GOFLAGS` is set to `-mod=readonly`. So, executing the tool needs to override `mod`, as per the documentation, it tends to modify the `go.mod` file. Signed-off-by: Ivan Valdes <ivan@vald.es>
@ivanvc: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted filessee 21 files with indirect coverage changes @@ Coverage Diff @@
## main #19467 +/- ##
==========================================
+ Coverage 68.85% 68.98% +0.12%
==========================================
Files 420 420
Lines 35762 35762
==========================================
+ Hits 24624 24670 +46
+ Misses 9714 9674 -40
+ Partials 1424 1418 -6 Continue to review full report in Codecov by Sentry.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ivanvc, serathius The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
please rebase this PR and mark it ready to review, thx |
There are a couple of obscure failures in the BOM generation. Finding a way to reproduce it was difficult, but I found an issue running this tool in a clean environment. Running the following command from the main branch, makes the bom generation fail:
This simulates running I opened and immediately drafted this pull request because there's another obscure error that I haven't been able to reproduce in the I believe the error here may be something similar, but haven't had the chance to verify it. In theory, removing IMHO, ideally, we should stop building the BOM with this tool and switch to a modern SBOM generation tool (#18902). |
The
GOFLAGS=-mod=mod
environment variable is not required, as that's the default mode. This code was likely copied from the tests, whereGOFLAGS
is set to-mod=readonly
. So, executing the tool needs to overridemod
, as per the documentation, it tends to modify thego.mod
file.Spun off from: #19423.
Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.