-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
updates to mm after removing vendor directories downstream #3436
updates to mm after removing vendor directories downstream #3436
Conversation
@@ -9,8 +9,7 @@ RUN go get github.com/github/hub | |||
RUN ssh-keyscan github.com >> /known_hosts | |||
RUN echo "UserKnownHostsFile /known_hosts" >> /etc/ssh/ssh_config | |||
|
|||
ENV GOFLAGS "-mod=vendor" | |||
ENV GO111MODULE "off" | |||
ENV GO111MODULE "on" |
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.
Historically this has caused goimports
to hang indefinitely and we don't know why. It might be the vendor directory, but it also might not be! We'll have to test it to find out. Do you have a branch of terraform that's already had the vendor directory removed so we can check?
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.
Yup! They're megan_rm_vendoring
in both downstreams as well.
29bf280
to
d060bd8
Compare
For some context - it was found that |
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'm comfortable testing this in the magician when we submit it, sure. :) Recommend you wait for the other reviewers, and please let's make sure I (or someone who knows the magician) am free when it goes in - I'll want to watch carefully.
compile/core.rb
Outdated
if !$pwd | ||
$pwd = Dir.pwd | ||
end | ||
compile_string(ctx, File.read($pwd+"/"+source)) |
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.
Does this really change things? That's so wild.
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.
Want to document our conversation from yesterday, but this changed because we're now cd-ing into the TPG directory and calling from there, so $pwd
is the magic-module
directory and this now calls the absolute path.
Oh, you do have to change some tests, but the test failures don't represent real issues. |
0529e6f
to
da123f2
Compare
Is this ready to go in? I am willing and able to disable the "ci evil filter" so that we can test what will be generated downstream! :) |
It's ready from my end now, I think. I'm not sure why the build is failing. And I'm not sure how it's doing for Inspec or Ansible? But the lint errors are cleaned up and it looks like what's generated downstream for Terraform (locally) is working correctly! |
I think the best way to test it is to have MM generate the downstreams and see if there are any diffs |
Okay, I have deployed a thing that should grant this specific PR an exception to the "no potentially dangerous PRs can run in automation" rule. :) I'll go hit "retry" and we'll see what happens. |
Ah, of course - actually we'll first have to build and deploy the container that's been modified. We'll have to shut down merging into this repo for a while to be safe. |
Hi! I'm the modular magician. Your PR hasn't generated any diffs, but I'll let you know if a future commit does. |
Hi! I'm the modular magician. Your PR hasn't generated any diffs, but I'll let you know if a future commit does. |
Hi! I'm the modular magician. Your PR hasn't generated any diffs, but I'll let you know if a future commit does. |
…udPlatform#3436) * updates to mm after removing vendor directories downstream * more changes to magic-modules for removing vendoring * fix tests * lint fixes * fix more lint errors * fix more lint errors * fix more lint errors * fix the rest of the lint errors * update generate in ansbile.rb * update ansbile.rb * inspec changes (and some minor terraform stuff) * updates for ansible * updates for tf oics and conversion * made changes for ansible_devel * updates for linter
Addresses hashicorp/terraform-provider-google#5789
updates to mm after removing vendor directories downstream
there are other references to
vendor
in here, but wasn't sure if i should be removing all of them as i'm not sure how it will affect other downstreams.will merge this at the same time as:
TPG: hashicorp/terraform-provider-google#6219
TPGB: hashicorp/terraform-provider-google-beta#2003
Release Note Template for Downstream PRs (will be copied)