Skip to content

Commit

Permalink
Merge pull request #67 from zendern/cleanup-dep-for-good
Browse files Browse the repository at this point in the history
Clean up dep artifacts from project root
  • Loading branch information
zendern authored Jan 4, 2020
2 parents 5066821 + 6678bfb commit 3a3e621
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 189 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ script:
- GOOS=linux GOARCH=amd64 go build -ldflags="-X 'github.com/sonatype-nexus-community/nancy/buildversion.BuildVersion=$VERSION' -X 'github.com/sonatype-nexus-community/nancy/buildversion.BuildTime=$time' -X 'github.com/sonatype-nexus-community/nancy/buildversion.BuildCommit=$TRAVIS_COMMIT'" -o nancy-linux.amd64-$VERSION
- GOOS=darwin GOARCH=amd64 go build -ldflags="-X 'github.com/sonatype-nexus-community/nancy/buildversion.BuildVersion=$VERSION' -X 'github.com/sonatype-nexus-community/nancy/buildversion.BuildTime=$time' -X 'github.com/sonatype-nexus-community/nancy/buildversion.BuildCommit=$TRAVIS_COMMIT'" -o nancy-darwin.amd64-$VERSION
- GOOS=windows GOARCH=amd64 go build -ldflags="-X 'github.com/sonatype-nexus-community/nancy/buildversion.BuildVersion=$VERSION' -X 'github.com/sonatype-nexus-community/nancy/buildversion.BuildTime=$time' -X 'github.com/sonatype-nexus-community/nancy/buildversion.BuildCommit=$TRAVIS_COMMIT'" -o nancy-windows.amd64-$VERSION.exe
- ./nancy-linux.amd64-$VERSION Gopkg.lock
- cd testdata/dep && ../../nancy-linux.amd64-$VERSION Gopkg.lock && cd -
- ./nancy-linux.amd64-$VERSION go.sum
- go list -m all | ./nancy-linux.amd64-$VERSION
env:
Expand Down
128 changes: 0 additions & 128 deletions Gopkg.lock

This file was deleted.

47 changes: 0 additions & 47 deletions Gopkg.toml

This file was deleted.

15 changes: 2 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,21 +97,12 @@ At current time you have a few options:

### Build from source

* Run `go get github.com/sonatype-nexus-community/nancy`
* Nancy should now be available wherever your GOPATH is set
* Run `dep ensure` in the root of the project
* Clone the project `git clone github.com/sonatype-nexus-community/nancy`
* Depending on your env you may have to enable go.mod `export GO111MODULE=on`
* In the root of the project `go test ./...`
* If tests checkout go ahead and run `go build`.
* Use that binary where ever your heart so desires!

For the adventurous, we have `go.mod` files that enable you to build using [go modules](https://github.com/golang/go/wiki/Modules).

```console
$ export GO111MODULE=on
$ go test ./...
$ go build
```

### Download release binary

Each commit to master creates a new release binary, and if you'd like to skip building from source, you can download a binary similar to:
Expand All @@ -125,8 +116,6 @@ $ curl -o /path/where/you/want/nancy \

`nancy` is written using Golang 1.13, so it is best you start there.

This project also uses `dep` for dependencies, so you will need to download `dep`.

Tests can be run like `go test ./... -v`

## Contributing
Expand Down

0 comments on commit 3a3e621

Please sign in to comment.