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

Be prepared for upgrade of Consul #11

Closed
onlyjob opened this issue Dec 19, 2019 · 4 comments · Fixed by #25
Closed

Be prepared for upgrade of Consul #11

onlyjob opened this issue Dec 19, 2019 · 4 comments · Fixed by #25

Comments

@onlyjob
Copy link
Contributor

onlyjob commented Dec 19, 2019

FYI in newer releases of Consul github.com/hashicorp/consul/lib/freeport has been moved to github.com/hashicorp/consul/sdk/freeport.

Patch is trivial:

--- a/driver_test.go
+++ b/driver_test.go
@@ -27,9 +27,9 @@
        "testing"
        "time"
        "os"

-       "github.com/hashicorp/consul/lib/freeport"
+       "github.com/hashicorp/consul/sdk/freeport"
        "github.com/hashicorp/nomad/client/taskenv"
        ctestutil "github.com/hashicorp/nomad/client/testutil"
        "github.com/hashicorp/nomad/helper/testlog"
        "github.com/hashicorp/nomad/helper/uuid"

See also hashicorp/nomad#6785

@towe75
Copy link
Collaborator

towe75 commented Dec 19, 2019

Thank you for pointing it out. Managing the dependencies is still very messy because of the missing go.mod and pinned ugorji/go generator in nomad. I do not dare to touch my go.mod ATM. First i'll focus on improving/modularizing the code base, maybe in the meantime nomad team moves on with their vendoring stuff.

@onlyjob
Copy link
Contributor Author

onlyjob commented Dec 19, 2019

I completely understand. Nomad's ugorji/go mess causes a lot of frustration not to mention all the days of effort that it cost us... See also hashicorp/nomad#4426, hashicorp/nomad#6537.

@towe75
Copy link
Collaborator

towe75 commented Feb 9, 2020

I did a first step in c3db30c. The plugin depends now on nomad 0.10.1, following go.mod from https://github.com/hashicorp/nomad-skeleton-driver-plugin
Consul is still pinned to 1.4.5 ATM.

@towe75
Copy link
Collaborator

towe75 commented May 24, 2020

@onlyjob you might want to have a look at pascomnet@055a57f .

It has a nicer go.mod with dependencies on nomad 0.11.2 and consul 1.7.3. Also the ugorji stuff is replaced by hashicorp/go-msgpack v1.1.5. It would be nice if you could give it a spin before i merge it into master.

Some manual testing and also the unittests in GH actions revealed no problems.

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 a pull request may close this issue.

2 participants