-
Notifications
You must be signed in to change notification settings - Fork 17
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
Add vendor for obs integration #198
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
#!BuildTag: elemental/elemental-operator:latest | ||
#!BuildTag: elemental/elemental-operator:0.0.0-noversion | ||
#!BuildTag: elemental/elemental-operator:0.0.0-noversion-build%RELEASE% | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is needed for OBS to support multiple tags |
||
apiVersion: v2 | ||
name: elemental-operator | ||
description: Rancher Elemental Operator | ||
version: 0.0.0 | ||
appVersion: 0.0.0 | ||
version: 0.0.0-noversion | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this a valid helm version? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is, helm chart requires semver 2 and this is a valid version for semver2. It is a preversion of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good enough for me, as long as it's a valid version, nothing will break |
||
appVersion: 0.0.0-noversion | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this change is done because the |
||
annotations: | ||
catalog.cattle.io/certified: rancher | ||
catalog.cattle.io/experimental: "true" | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
go mod vendor
does not include CGO code, hence we need to get source tarball manually and include it. So in order to properly build a functionalvendor
foldermake vendor
is required.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.
How about about having a git submodule for the go-tpm-tools inside the vendor dir? Would that work or does the go mod vendor overwrite it?
I know we can replace the module in the go.mod to point to a local sir, so that would avoid having to download the tar on the makefile which is a bit yuck
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.
Damn, this crap has been going on for 4 years! golang/go#26366
There is a couple of simple fixes but those need to go upstream.. I will check tonigth to see if there is a saner way to get this proper
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.
lol, I've been there too 😅
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.
🤦🏻♂️