Permalink
Browse files

Upgrade Go to version 1.11 and enable Go modules

Removes Glide as a module manager
  • Loading branch information...
mraerino committed Nov 13, 2018
1 parent d67840a commit 2cf516d6f73feed80906584142481acdf4a1df0c
Showing with 192 additions and 327 deletions.
  1. +5 −1 .travis.yml
  2. +4 −3 Dockerfile
  3. +1 −1 Makefile
  4. +3 −1 README.md
  5. +0 −266 glide.lock
  6. +0 −55 glide.yaml
  7. +64 −0 go.mod
  8. +115 −0 go.sum
@@ -2,7 +2,11 @@
language: go
go:
- "1.9"
- "1.11"
env:
global:
- GO111MODULE=on
install: make deps
script: make all
@@ -1,8 +1,9 @@
FROM netlify/go-glide:v0.12.3
FROM golang:1.11
ADD . /go/src/github.com/netlify/gocommerce
RUN useradd -m netlify
RUN useradd -m netlify && cd /go/src/github.com/netlify/gocommerce && make deps build_linux && mv gocommerce /usr/local/bin/
ADD . /src
RUN cd /src && make deps build_linux && mv gocommerce /usr/local/bin/
USER netlify
CMD ["gocommerce"]
@@ -38,7 +38,7 @@ release: ## Upload release to GitHub releases.
deps: ## Install dependencies.
@go get -u golang.org/x/lint/golint
@go get -u github.com/Masterminds/glide && glide install
@go mod download
image: ## Build the Docker image.
docker build .
@@ -65,7 +65,9 @@ The easiest way to use GoCommerce is with [commerce-js](https://github.com/netli
## Running the GoCommerce backend
GoCommerce can be deployed to any server environment that runs Go. The button below provides a quick way to get started by running on Heroku:
GoCommerce can be deployed to any server environment that runs Go. Minimum requirement for Go is version 1.11 since GoCommerce is using Go modules.
The button below provides a quick way to get started by running on Heroku:
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/netlify/gocommerce)

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 2cf516d

Please sign in to comment.