Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Remove go.mod suffix when grabbing code-generator version #73

Merged
merged 2 commits into from
Apr 15, 2020

Conversation

terrytangyuan
Copy link
Member

This fixes cases like k8s.io/code-generator v0.15.10/go.mod h1:G8bQwmHm2eafm5bgtX67XDZQ8CWKSGu9DekI+yN4Y5I=.

@kubeflow-bot
Copy link

This change is Reviewable

@terrytangyuan
Copy link
Member Author

/cc @Jeffwan

@k8s-ci-robot k8s-ci-robot requested a review from Jeffwan April 15, 2020 15:04
@@ -25,7 +25,7 @@ SCRIPT_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
ROOT_PKG=github.com/kubeflow/mxnet-operator

# Grab code-generator version from go.sum
CODEGEN_VERSION=$(grep 'k8s.io/code-generator' go.sum | awk '{print $2}' | head -1)
CODEGEN_VERSION=$(grep 'k8s.io/code-generator' go.sum | awk '{print $2}' | sed 's/go.mod//g' | head -1)
Copy link
Member

Choose a reason for hiding this comment

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

echo 'k8s.io/code-generator v0.15.10/go.mod h1:G8bQwmHm2eafm5bgtX67XDZQ8CWKSGu9DekI+yN4Y5I=' | awk '{print $2}' | head -1 | sed 's/go.mod//g'

The result is v0.15.10/

I think we need to change to sed 's/\/go.mod//g' which has a extra /

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch. Done. Although it would work even with extra /

@Jeffwan
Copy link
Member

Jeffwan commented Apr 15, 2020

/lgtm
/approve

@terrytangyuan
Copy link
Member Author

/approve

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Jeffwan, terrytangyuan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit f05fb0b into kubeflow:master Apr 15, 2020
@terrytangyuan terrytangyuan deleted the patch-2 branch April 15, 2020 17:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants