-
Notifications
You must be signed in to change notification settings - Fork 44
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
build: integrate prepare source from composer #1476
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅ |
Hey @croissanne and @ezr-ondrej this needs an attention - other PRs are failing because of a version requirement, I believe it is great time to fix prepare sources for once. There is a tread on |
|
||
GOBIN=$TOOLS_PATH $GO_BINARY generate -x -mod=mod ./... | ||
# Generate source (skip vendor/): | ||
GOBIN=$TOOLS_PATH go generate -x ./cmd/... ./internal/... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The TOOLS_PATH
will disappear once we upgrade to 1.24 which features the all new Go tool pinning feature. In short, external tools will be added to go.mod
now ensuring we all are on the same version. Until then, this is I believe a good workaround for the time being.
7031154
to
f76cb53
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me, one nit, apart of that it works... and if it works, merge it 😛
tools/prepare-source.sh
Outdated
$GO_BINARY download | ||
# Check latest Go version for the minor we're using | ||
LATEST=$(curl -s https://endoflife.date/api/go/"${GO_MAJOR_VER}".json | jq -r .latest) | ||
if test "$LATEST" != "go$GO_VERSION"; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't work, I see the WARNING even tho we are on latest, I believe the issue is:
if test "$LATEST" != "go$GO_VERSION"; then | |
if test "$LATEST" != "$GO_VERSION"; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, rebased.
Sorry I wasn't fast enough and there is conflict now :/ |
This is fine, the other patch was more important it fixed a CICD problem. Rebased. |
The Checks CI fails with following error, I'm not sure what it's trying to tell me :)
|
Fixed, this can be dropped from the linter config as Also integrating #1484 update into this PR as well. |
Hmm container test is trying to build an container and fails |
Yeah the warning I implemented is sort of useless since Go Toolset in RHEL is few versions behind usually. But we now have the working in composer to so let's stick with it? Rebased. |
/retest |
The failures feel unrelated 🤔 |
or @tkoscieln once you get to this, do you know what's going on here? 🤔
|
Ephemeral failure. /retest |
@ezr-ondrej hello, this is my mistake and I know exactly what broke here. I accidentally forgot to push one commit before merging new changes to our plugin yesterday, @lzap the missing commit is a fix for the issues I had with what API returns that we discussed last week. Will fix this asap. |
@ezr-ondrej @lzap sorry for the delay, was facing some errors from Quay during the IQE container push. Should be fixed now. |
I noticed this automated PR failed:
#1475
This is a chance to integrate changes from composer which uses a new Go feature "toolbox", hopefully it will prevent from automated failures.