Skip to content

Commit

Permalink
Merge pull request #71 from Clever/use-go-mod
Browse files Browse the repository at this point in the history
Use go mod, update deps
  • Loading branch information
nathanleiby authored Feb 25, 2021
2 parents 643ef28 + 09c194e commit 98390e1
Show file tree
Hide file tree
Showing 9 changed files with 220 additions and 347 deletions.
268 changes: 0 additions & 268 deletions Gopkg.lock

This file was deleted.

16 changes: 0 additions & 16 deletions Gopkg.toml

This file was deleted.

4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ release:
@GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w -X main.version=$(VERSION)" \
-o="$@/$(EXECUTABLE)-$(VERSION)-darwin-amd64"

install_deps: golang-dep-vendor-deps
$(call golang-dep-vendor)
install_deps:
go mod vendor
24 changes: 18 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ _"the lemon is Git{Hub,Lab}"_

## Setup

### Download
Here are several ways to install microplane:

You can download a pre-built version of Microplane from the [Github releases](https://github.com/Clever/microplane/releases).

Alternately, you can download via `go get github.com/clever/microplane/cmd`. In this case the binary will be installed to `$GOPATH/bin/microplane`
- *Pre-built release* - You can download a pre-built version of Microplane from the [Github releases](https://github.com/Clever/microplane/releases).
- *Compile it yourself* - Run `go get github.com/clever/microplane/cmd`. In this case the binary will be installed to `$GOPATH/bin/microplane`. Alternately, you can follow the steps under "Development", below.
- *Homebrew* - `brew install microplane`. The latest homebrew formula is [here](https://github.com/Homebrew/homebrew-core/blob/master/Formula/microplane.rb)

## Usage

Expand Down Expand Up @@ -44,9 +44,21 @@ For an in-depth example, check out the [introductory blogpost](https://medium.co

### Build Locally

Microplane is a Golang project. It uses [`dep`](https://github.com/golang/dep) for vendoring.
Microplane is a Golang project.

First, clone the repo.

To install dependencies run
```
make install_deps
```

To build, run
```
make build
```

First, clone the repo into your `GOPATH`. Next, run `make install_deps` (this calls `dep`). To build, run `make build`. You should now have a working build of Microplane in `./bin/mp`.
You should now have a working build of Microplane in `./bin/mp`.

### Design

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.26
0.0.27
29 changes: 29 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
module github.com/Clever/microplane

go 1.15

require (
github.com/GeertJohan/fgt v0.0.0-20160120143236-262f7b11eec0 // indirect
github.com/cpuguy83/go-md2man v1.0.7 // indirect
github.com/facebookgo/ensure v0.0.0-20200202191622-63f1cf65ac4c // indirect
github.com/facebookgo/errgroup v0.0.0-20160209021148-779c8d7ef069
github.com/facebookgo/stack v0.0.0-20160209184415-751773369052 // indirect
github.com/facebookgo/subset v0.0.0-20200203212716-c811ad88dec4 // indirect
github.com/fatih/color v1.5.0
github.com/google/go-github v17.0.0+incompatible
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/juju/testing v0.0.0-20201216035041-2be42bba85f3 // indirect
github.com/mattn/go-colorable v0.0.9 // indirect
github.com/mattn/go-isatty v0.0.3 // indirect
github.com/nathanleiby/diffparser v0.0.0-20180103231304-936553ce5db1
github.com/russross/blackfriday v0.0.0-20170728175326-4048872b16cc // indirect
github.com/spf13/cobra v0.0.1
github.com/spf13/pflag v1.0.0 // indirect
github.com/stretchr/testify v1.4.0
github.com/waigani/diffparser v0.0.0-20190828052634-7391f219313d // indirect
github.com/xanzy/go-gitlab v0.19.0
golang.org/x/lint v0.0.0-20200302205851-738671d3881b // indirect
golang.org/x/oauth2 v0.0.0-20181106182150-f42d05182288
golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
)
Loading

0 comments on commit 98390e1

Please sign in to comment.