cormacrelf / terraform-provider-zerotier

Create, modify and destroy ZeroTier networks and members through Terraform.
128 stars 25 forks source link

Migrate from dep -> go mod #7

Closed bltavares closed 5 years ago

bltavares commented 5 years ago

Since Go 1.11 there is a new way to structure packages, which don't require the project to live under $GOPATH, and provides version management.

go mod could superseed dep, given it is builtin on the core tooling of the language and requires less dependencies to contribute.

This commit follows the migration instructions to adopt go mod.

The README has been updated, as well as Makefile and Travis configuration.

The main.go has been moved into the root directory, so we are able to go build and produce the terraform-provider-zerotier binary, simplifying a lot the development.

cormacrelf commented 5 years ago

I'm adding travis caching to speed things up a bit and because the first time I ran that other commit through it had an HTTP 500 error retrieving modules, but other than that, I think we're done here 👍