Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ build_root:
image_stream_tag:
name: release
namespace: openshift
tag: golang-1.18
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use this instead?

build_root:
  from_repository: true

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Presumably, this will keep up with the value in go.mod, and thus, never need to be modified again?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From whatever branch is appropriate

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better than having to modify this repo...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't. Go 1.20 from the repo fails CI. And 1.18 also fails CI.

I have another PR open to switch to from_repository.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotcha.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might need more surgery though. Maybe need to temporarily disable the lint test. Or force a go bump.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I figured out at least one problem. platform-operators tries to use setup-envtest@latest, which apparently now requires a more recent version of Go to work.

I've updated @awgreene's PR (openshift/platform-operators#92) to pin setup-envtest. And I've also opened a separate PR to switch CI tooling over to bingo (openshift/platform-operators#95) to make sure build tools actually stay pinned.

We may still need this PR because there is also an interplay between golangci-lint and the go compiler version that may require an intermediate bump to Go 1.19.

tag: golang-1.19
images:
- dockerfile_path: Dockerfile
from: base
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ build_root:
image_stream_tag:
name: release
namespace: openshift
tag: golang-1.18
tag: golang-1.19
images:
- dockerfile_path: Dockerfile
from: base
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ build_root:
image_stream_tag:
name: release
namespace: openshift
tag: golang-1.18
tag: golang-1.19
images:
- dockerfile_path: Dockerfile
from: base
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ build_root:
image_stream_tag:
name: release
namespace: openshift
tag: golang-1.18
tag: golang-1.19
images:
- dockerfile_path: Dockerfile
from: base
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ build_root:
image_stream_tag:
name: release
namespace: openshift
tag: golang-1.18
tag: golang-1.19
images:
- dockerfile_path: Dockerfile
from: base
Expand Down