Skip to content

switch to go modules #194

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

Merged
merged 1 commit into from
Jul 20, 2020
Merged

switch to go modules #194

merged 1 commit into from
Jul 20, 2020

Conversation

tariq1890
Copy link
Contributor

No description provided.

@tariq1890
Copy link
Contributor Author

@databus23 FYI

@tariq1890
Copy link
Contributor Author

@databus23 Friendly ping :)

@tariq1890
Copy link
Contributor Author

Requesting your review @databus23

@deiga
Copy link
Contributor

deiga commented May 14, 2020

Maybe @mumoshu can help here as well? :)

VERSION := $(shell sed -n -e 's/version:[ "]*\([^"]*\).*/\1/p' plugin.yaml)

PKG:= github.com/databus23/helm-diff
LDFLAGS := -X $(PKG)/cmd.Version=$(VERSION)

# Clear the "unreleased" string in BuildMetadata
LDFLAGS += -X $(PKG)/vendor/k8s.io/helm/pkg/version.BuildMetadata=
LDFLAGS += -X $(PKG)/vendor/k8s.io/helm/pkg/version.Version=$(shell grep -A1 "package: k8s.io/helm" glide.yaml | sed -n -e 's/[ ]*version:.*\(v[.0-9]*\).*/\1/p')
LDFLAGS += -X $(PKG)/vendor/k8s.io/helm/pkg/version.Version=$(shell grep -A1 "package: k8s.io/helm" go.mod | sed -n -e 's/[ ]*version:.*\(v[.0-9]*\).*/\1/p')
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this should now grep for k8s.io/helm v2.11.0+incompatible in go.mod and the sed expr should be rewritten to extract v2.11.0 only. But let's defer it to another issue/pr as I've left this not reviewed too long!

Copy link
Collaborator

@mumoshu mumoshu left a comment

Choose a reason for hiding this comment

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

Thanks for patience and your contribution!

@mumoshu mumoshu merged commit 5eca05a into databus23:master Jul 20, 2020
@mumoshu mumoshu mentioned this pull request Jul 20, 2020
@tariq1890 tariq1890 deleted the gomod branch July 20, 2020 01:53
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.

3 participants