Skip to content

Commit

Permalink
Merge pull request #54 from cvbarros/go-modules
Browse files Browse the repository at this point in the history
Migrate to Go modules
  • Loading branch information
cvbarros authored Jul 30, 2019
2 parents 6ce5b85 + 3ca8b97 commit 1e0547f
Show file tree
Hide file tree
Showing 2,333 changed files with 542 additions and 831,133 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ services:
- docker
language: go
go:
- "1.10.x"
- "1.11.x"
env:
global:
- GO111MODULE=on
- TEAMCITY_ADDR=http://localhost:8112
- TF_ACC=1
- TEAMCITY_USER=admin
Expand Down
12 changes: 7 additions & 5 deletions CONTRIBUTING.MD
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,19 @@ Be descriptive about your issue. Specify which TeamCity, Golang and OS version y
Feature requests are welcome, still, try to be as specific as possible about what the intended feature should be. Then, after proposing the feature, be open to discussion and patient regarding it's implementation.

## Developing ##
If you want to contribute in form of development, you may fork this repo, clone it locally (preferably inside your `GOPATH`) then create a branch to work on. [This link](https://opensource.guide/how-to-contribute/#opening-a-pull-request) has helpful information to get started.
If you want to contribute in form of development, you may fork this repo, clone it locally then create a branch to work on. [This link](https://opensource.guide/how-to-contribute/#opening-a-pull-request) has helpful information to get started.

You'll first need [Go](https://golang.org/doc/install) installed on your machine (version 1.10+ is *required*). You'll also need to correctly setup a [GOPATH](http://golang.org/doc/code.html#GOPATH), as well as adding `$GOPATH/bin` to your `$PATH`.
You'll first need [Go](https://golang.org/doc/install) installed on your machine (version 1.11+ is *required*).

To compile the provider, run `go build -o $GOPATH/bin/terraform-provider-teamcity`. This will build the provider and put the provider binary in the `$GOPATH/bin` directory.
> This project makes use of [Go Modules](https://github.com/golang/go/wiki/Modules). If you clone it inside `$GOPATH`, make sure you have `GO111MODULE=on` before using any `go` commands. The default is `auto`, which will disable modules support inside `$GOPATH`.
To build the provider, run `go build -o terraform-provider-teamcity`. This will generate the provider binary in the current directory.

Seen an issue that you want to tackle? Make sure to comment indicating that intention, so others know that someone is already willing to work on it.

Try to maitain the code conventions, or spot where they are inconsistent across the codebase, whenever possible. When submitting your work, if you would like to propose an enhancement to existing conventions, do it in a separate issue for discussion, other than the issued worked on.
Try to maintain the code conventions, or spot where they are inconsistent across the codebase, whenever possible. When submitting your work, if you would like to propose an enhancement to existing conventions, do it in a separate issue for discussion, other than the issued worked on.

### Running Locally ###
### Running TeamCity Locally ###
TeamCity can be run with the official docker images from JetBrains. We leverage that by implementing full integration tests with every feature.
You are expected to fully run these tests and make sure your changes do not break existing functionality.

Expand Down
3 changes: 3 additions & 0 deletions DECISIONS.MD
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 2019-07-30
Project has been converted to use Go Modules. This follows on other major providers and Terraform project itself.

# 2018-09-22
Breaking change on `teamcity_build_trigger` resource. I've decided to create separate resource types for different types of build triggers, since the configuration complexity of these resources will greatly increase if kept on a single "build trigger" resource type.

Expand Down
35 changes: 35 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
module github.com/cvbarros/terraform-provider-teamcity

go 1.12

require (
cloud.google.com/go v0.40.0 // indirect
github.com/aws/aws-sdk-go v1.20.6 // indirect
github.com/cvbarros/go-teamcity-sdk v0.0.0-20190131214126-9abe613e03a0
github.com/dghubble/sling v1.2.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.1 // indirect
github.com/hashicorp/go-hclog v0.9.2 // indirect
github.com/hashicorp/go-plugin v1.0.1 // indirect
github.com/hashicorp/go-version v1.2.0 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/hashicorp/hcl2 v0.0.0-20190618163856-0b64543c968c // indirect
github.com/hashicorp/hil v0.0.0-20190212132231-97b3a9cdfa93 // indirect
github.com/hashicorp/terraform v0.12.2
github.com/hashicorp/terraform-config-inspect v0.0.0-20190524144125-e2ee25ba1e5e // indirect
github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d // indirect
github.com/mattn/go-isatty v0.0.8 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/mitchellh/reflectwalk v1.0.1 // indirect
github.com/motemen/go-loghttp v0.0.0-20170804080138-974ac5ceac27 // indirect
github.com/motemen/go-nuts v0.0.0-20180315145558-42c35bdb11c2 // indirect
github.com/spf13/afero v1.2.2 // indirect
github.com/ulikunitz/xz v0.5.6 // indirect
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
go.opencensus.io v0.22.0 // indirect
golang.org/x/crypto v0.0.0-20190621222207-cc06ce4a13d4 // indirect
golang.org/x/net v0.0.0-20190620200207-3b0461eec859 // indirect
golang.org/x/sys v0.0.0-20190621203818-d432491b9138 // indirect
google.golang.org/appengine v1.6.1 // indirect
google.golang.org/genproto v0.0.0-20190620144150-6af8c5fc6601 // indirect
google.golang.org/grpc v1.21.1 // indirect
)
Loading

0 comments on commit 1e0547f

Please sign in to comment.