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

Fix broken go-discover dep tree. #155

Merged
merged 2 commits into from
May 2, 2022

Conversation

jdoss
Copy link
Contributor

@jdoss jdoss commented Feb 11, 2022

The go-discover mod had some broken deps (hashicorp/go-discover#172) so this PR fixes that issue and updates hclogvet's branch to main.

Without these changes, anyone building with a clean GOPATH will have a very broken dependency tree.

@hashicorp-cla
Copy link

hashicorp-cla commented Feb 11, 2022

CLA assistant check
All committers have signed the CLA.

@lgfa29
Copy link
Contributor

lgfa29 commented Feb 15, 2022

Thanks for the PR @jdoss!

Kind of weird that go-discover is being pulled, but I guess it's because of github.com/hashicorp/nomad. I wasn't able to reproduce the broken build, so would you mind testing upgrading github.com/hashicorp/nomad instead and see if it pulls the correct go-discover version?

@lgfa29
Copy link
Contributor

lgfa29 commented Feb 15, 2022

Just noticed #141, maybe updating just Nomad is not enough?

Still, I would be curious to see if it works 🙂

@lgfa29 lgfa29 mentioned this pull request Feb 15, 2022
@ttys3
Copy link
Contributor

ttys3 commented Feb 19, 2022

I can't reproduce the issue.

all the current deps seems works fine.

@jdoss
Copy link
Contributor Author

jdoss commented Feb 22, 2022

@lgfa29 I tried just upgrading Nomad but it wasn't enough. This was the only way I could get past the deps to get this plugin to build.

@ttys3 are you doing with a totally empty GOPATH? If your current GOPATH has the old module it will build just fine.

@lgfa29
Copy link
Contributor

lgfa29 commented Feb 22, 2022

Ah ok, thanks for trying 🙂

I wasn't able to reproduce it either, but it was also reported by another user (#141), so there may be something weird going-on.

This is what I tried to get a clean environment:

$ docker run --rm -it golang:1.14 /bin/bash
$ git clone https://github.com/hashicorp/nomad-driver-podman.git src/hashicorp/nomad-driver-podman
$ cd src/hashicorp/nomad-driver-podman/
$ ./build.sh

I tried Go 1.17 as well and it built fine 🤔

@jdoss
Copy link
Contributor Author

jdoss commented Apr 14, 2022

Do you folks still want this PR? I can close it if not.

@lgfa29
Copy link
Contributor

lgfa29 commented Apr 21, 2022

Thanks for the ping @jdoss, but I haven't been able to reproduce the issue, even in a clean environment.

@towe75 have seen this issue before?

@towe75
Copy link
Collaborator

towe75 commented Apr 23, 2022

@jdoss thank you for the PR

@lgfa29 i can not reproduce it in my personal dev env and also not in our (private) nightly builds. We're building on ephemeral nodes with golang 1.17 there. Also the GH Action Runner has no problem.

My 2 Cents: merging it will not hurt us and it might fix a subtle problem for some users.

@shoenig shoenig mentioned this pull request Apr 26, 2022
@jdoss jdoss mentioned this pull request Apr 28, 2022
Copy link
Contributor

@lgfa29 lgfa29 left a comment

Choose a reason for hiding this comment

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

Sounds good to me @towe75.

Thanks for the PR @jdoss, sorry it took this long to get it merged 😅

@lgfa29 lgfa29 merged commit 49fc4f0 into hashicorp:main May 2, 2022
@jdoss
Copy link
Contributor Author

jdoss commented May 2, 2022

@lgfa29 all good! Thanks for the merge. 🥳

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.

5 participants