Skip to content

Conversation

estroz
Copy link
Member

@estroz estroz commented Jun 20, 2019

Description of the change: directly add replace directive for the local SDK repo to go.mod bytes instead of doing a bunch of extra work to use go mod edit.

Motivation for the change: other dependencies may have unresolved tags/commits, ex. kubernetes-1.14.1, in a newly-scaffolded go.mod which cause errors during the parse step of go mod edit. Instead of doing extra replace work with sed or Go, we can skip using go mod entirely and just add a replace directive for the SDK repo by modifying go.mod bytes directly.

@openshift-ci-robot openshift-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jun 20, 2019
@estroz estroz force-pushed the fix-e2e-modules branch 2 times, most recently from 187d34d to 80f29b1 Compare June 20, 2019 02:50
@estroz estroz force-pushed the fix-e2e-modules branch from 80f29b1 to 0b95e94 Compare June 20, 2019 22:17
Copy link
Member

@joelanford joelanford left a comment

Choose a reason for hiding this comment

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

LGTM after addressing question.

Copy link
Contributor

@AlexNPavel AlexNPavel left a comment

Choose a reason for hiding this comment

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

LGTM

@estroz estroz requested a review from hasbro17 June 26, 2019 18:31
Copy link
Contributor

@hasbro17 hasbro17 left a comment

Choose a reason for hiding this comment

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

LGTM

@estroz estroz changed the title e2e: better method of adding SDK repo replace directive to go.mod e2e: better method of adding SDK repo replace directive to operator's go.mod Jun 26, 2019
@estroz estroz merged commit 61b6af1 into operator-framework:master Jun 26, 2019
@estroz estroz deleted the fix-e2e-modules branch June 26, 2019 20:53
estroz added a commit to estroz/operator-sdk that referenced this pull request Jul 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants