chore: upgrade Go to 1.14

This commit is contained in:
Deluan 2020-02-26 09:37:48 -05:00
parent 0370f0a3ea
commit 07ac14f810
6 changed files with 9 additions and 9 deletions

View File

@ -11,10 +11,10 @@ jobs:
os: [macOS-latest, ubuntu-latest] os: [macOS-latest, ubuntu-latest]
steps: steps:
- name: Set up Go 1.13 - name: Set up Go 1.14
uses: actions/setup-go@v1 uses: actions/setup-go@v1
with: with:
go-version: 1.13 go-version: 1.14
id: go id: go
- name: Check out code into the Go module directory - name: Check out code into the Go module directory

View File

@ -24,7 +24,7 @@ jobs:
- name: Fetch tags - name: Fetch tags
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Run GoReleaser - name: Run GoReleaser
uses: docker://bepsays/ci-goreleaser:latest uses: docker://bepsays/ci-goreleaser:1.14-1
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -10,7 +10,7 @@ RUN npm run build
##################################################### #####################################################
### Build executable ### Build executable
FROM golang:1.13-alpine AS gobuilder FROM golang:1.14-alpine AS gobuilder
# Download build tools # Download build tools
RUN mkdir -p /src/ui/build RUN mkdir -p /src/ui/build

View File

@ -1,4 +1,4 @@
GO_VERSION=1.13 GO_VERSION=1.14
NODE_VERSION=v13.7.0 NODE_VERSION=v13.7.0
GIT_SHA=$(shell git rev-parse --short HEAD) GIT_SHA=$(shell git rev-parse --short HEAD)
@ -51,7 +51,7 @@ check_env: check_go_env check_node_env
.PHONY: check_go_env .PHONY: check_go_env
check_go_env: check_go_env:
@(hash go) || (echo "\nERROR: GO environment not setup properly!\n"; exit 1) @(hash go) || (echo "\nERROR: GO environment not setup properly!\n"; exit 1)
@go version | grep -q $(GO_VERSION) || (echo "\nERROR: Please upgrade your GO version\n"; exit 1) @go version | grep -q $(GO_VERSION) || (echo "\nERROR: Please upgrade your GO version\nThis project requires version $(GO_VERSION)"; exit 1)
.PHONY: check_node_env .PHONY: check_node_env
check_node_env: check_node_env:
@ -79,4 +79,4 @@ release:
.PHONY: dist .PHONY: dist
dist: dist:
docker run -it -v $(PWD):/github/workspace -w /github/workspace bepsays/ci-goreleaser:1.13-4 goreleaser release --rm-dist --skip-publish --snapshot docker run -it -v $(PWD):/github/workspace -w /github/workspace bepsays/ci-goreleaser:1.14-1 goreleaser release --rm-dist --skip-publish --snapshot

View File

@ -86,7 +86,7 @@ To get the cutting-edge, latest version from master, use the image `deluan/navid
### Build from source ### Build from source
You will need to install [Go 1.13](https://golang.org/dl/) and [Node 13.7.0](http://nodejs.org). You will need to install [Go 1.14](https://golang.org/dl/) and [Node 13.7.0](http://nodejs.org).
You'll also need [ffmpeg](https://ffmpeg.org) installed in your system. The setup is very strict, and You'll also need [ffmpeg](https://ffmpeg.org) installed in your system. The setup is very strict, and
the steps bellow only work with these specific versions (enforced in the Makefile) the steps bellow only work with these specific versions (enforced in the Makefile)

2
go.mod
View File

@ -1,6 +1,6 @@
module github.com/deluan/navidrome module github.com/deluan/navidrome
go 1.13 go 1.14
require ( require (
github.com/BurntSushi/toml v0.3.1 // indirect github.com/BurntSushi/toml v0.3.1 // indirect