-
Notifications
You must be signed in to change notification settings - Fork 169
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
Documentation - Update Go dependency management doc #3321
base: master
Are you sure you want to change the base?
Conversation
Update documentation to remove instructions to run make vendor. This script was previously required when the ARO installer was vendored, as well as other OCP 4.x dependencies.
calling | ||
|
||
```bash | ||
make vendor |
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.
Should the makefile target be deprecated / removed altogether? I'm curious on if we still need it for anything if we're removing it from docs.
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.
I was asking myself the same question. I see Ben updated the script a few weeks ago PR #3301
He said it still has some uses, so I don't think we should remove it. Documentation on it's specific purposes and uses would be nice.
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.
Don't certain OCP repos still need to be vendored using the script? I'm looking at
Line 740 in 21f0e23
// Installer dependencies. Some of them are being used directly in the RP. |
But if the premise that we no longer need the script holds, the doc updates LGTM.
We flushed out that this documentation is outdated in this thread. Maybe I should remove that comment from |
Gotcha, I read through the thread. Based on #3301, it looks like @bennerv didn't remove the whole script, just the part that previously vendored in the custom installer. And reading through the comments at the top of the script (see below), it's not clear to me why we're considering the script deprecated, since the logic explained there seems that it would still apply despite the recent installer-related changes. So I'm not even sure about the ARO-RP/hack/update-go-module-dependencies.sh Lines 5 to 21 in 21f0e23
|
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.
I think this introduces some changes that will impact SREs on various OS. Can we get a +1 from both sides?
|
||
```bash | ||
# Ensure go module-aware mode is set to auto | ||
export GO111MODULE=auto |
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.
My work laptop is fubar so I can't test this myself, but I am 99% sure this breaks re: mac vs linux. Can we get an SRE from each side of the aisle to attempt this change?
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.
Woops, ok, so maybe it was a Linux thing - have my laptop back up and I, for reasons unknown along my dev journey on this team, have changed my GO111MODULE=""
, I can test this now, so I'll give it a go and see what happens :)
|
||
```bash | ||
export GO111MODULE=auto |
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.
Same as above.
@bennerv Can you review this PR when you have a chance? |
Which issue this PR addresses:
N/A
Fixes
What this PR does / why we need it:
Update documentation to remove instructions to run make vendor. This script was previously required when the ARO installer was vendored, as well as other OCP 4.x dependencies.
Test plan for issue:
Updated Go module dependencies recently with these steps.
Is there any documentation that needs to be updated for this PR?
N/A