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

Migrate from dep -> go mod #7

Merged
merged 3 commits into from
Mar 20, 2019
Merged

Conversation

bltavares
Copy link
Contributor

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.

@bltavares bltavares force-pushed the migrate-dep-go branch 13 times, most recently from 32b9f6a to fc25700 Compare March 16, 2019 20:56
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.

[migration instructions]: https://github.com/golang/go/wiki/Modules#migrating-to-modules
bltavares added a commit to bltavares/terraform-provider-zerotier that referenced this pull request Mar 16, 2019
Terraform [is able to import](https://www.terraform.io/docs/import/index.html) existing infrastructure.
This allows you take resources you've created by some other means and bring it under Terraform management.

This commit implements the `Importer` attribute for each resource, as documented by Terrafom ImporterPassthrough.

Usage is documented on `README` as well.

Closes cormacrelf#6

Built on top of: cormacrelf#7
bltavares added a commit to bltavares/terraform-provider-zerotier that referenced this pull request Mar 17, 2019
Terraform [is able to import](https://www.terraform.io/docs/import/index.html) existing infrastructure.
This allows you take resources you've created by some other means and bring it under Terraform management.

This commit implements the `Importer` attribute for each resource, as documented by Terrafom ImporterPassthrough.

Usage is documented on `README` as well.

Closes cormacrelf#6

Built on top of: cormacrelf#7
@cormacrelf
Copy link
Owner

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 👍

@cormacrelf cormacrelf merged commit 18e9fff into cormacrelf:master Mar 20, 2019
cormacrelf added a commit that referenced this pull request Mar 20, 2019
See code review in
#7 for
why the `go.mod` indirects disappear.
@bltavares bltavares deleted the migrate-dep-go branch March 20, 2019 16:19
bltavares added a commit to bltavares/terraform-provider-zerotier that referenced this pull request Mar 20, 2019
Terraform [is able to import](https://www.terraform.io/docs/import/index.html) existing infrastructure.
This allows you take resources you've created by some other means and bring it under Terraform management.

This commit implements the `Importer` attribute for each resource, as documented by Terrafom ImporterPassthrough.

Usage is documented on `README` as well.

Closes cormacrelf#6

Built on top of: cormacrelf#7
cormacrelf pushed a commit that referenced this pull request Mar 23, 2019
Terraform [is able to import](https://www.terraform.io/docs/import/index.html) existing infrastructure.
This allows you take resources you've created by some other means and bring it under Terraform management.

This commit implements the `Importer` attribute for each resource, as documented by Terrafom ImporterPassthrough.

Usage is documented on `README` as well.

Closes #6

Built on top of: #7
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.

2 participants