Skip to content
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

Refresh go proxy module info on release #315

Merged
merged 1 commit into from
Jun 24, 2021
Merged

Refresh go proxy module info on release #315

merged 1 commit into from
Jun 24, 2021

Conversation

VineethReddy02
Copy link
Contributor

fixes: #116

@VineethReddy02 VineethReddy02 requested review from a team and dmitryax June 17, 2021 07:19
- name: "refresh go proxy module info on release"
run: |
OPERATOR_VERSION=$(git describe --tags)
curl https://proxy.golang.org/github.com/open-telemetry/opentelemetry-operator/@v/${OPERATOR_VERSION}.info
Copy link
Contributor

Choose a reason for hiding this comment

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

How about running go get or get install to fetch the new version instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am not sure how to fetch the latest version using go get do you mind sharing the cmd to fetch the version? Currently, I am using the same method used to create release tag which is already being used in prior step of release flow here

Copy link
Contributor

Choose a reason for hiding this comment

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

go get github.com/open-telemetry/opentelemetry-operator@{VERSION}

should work. For example,

go get github.com/open-telemetry/opentelemetry-operator@v0.27.0

Copy link
Member

Choose a reason for hiding this comment

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

Did it work to use the notation that @owais mentioned?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the go get just pulls the dep, but I am unable to test the refresh thing as it happens after the releases. How about letting it be curl as suggested in go docs?

Copy link
Member

Choose a reason for hiding this comment

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

I think curl is more explicit about the intentions. It would also remove the doubts on whether the call actually got to the destination. I was referring to the env var with the version, though :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Switched it back to curl and I noticed during the release process we are creating operator release in create-release-github.sh using the same git cmd here so now during the release we create a new version and perform the curl on the same version with current changes.

@jpkrohling jpkrohling merged commit 606a442 into open-telemetry:main Jun 24, 2021
shree007 pushed a commit to shree007/opentelemetry-operator that referenced this pull request Dec 12, 2021
ItielOlenick pushed a commit to ItielOlenick/opentelemetry-operator that referenced this pull request May 1, 2024
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.

Refresh go proxy module information on release
3 participants