Skip to content

Commit

Permalink
Remove gomod (#40)
Browse files Browse the repository at this point in the history
Fix for building version 3 of hjson-go. Requires export GO111MODULE=auto when building or testing using Go 1.16 or later.
  • Loading branch information
trobro authored Jul 3, 2022
1 parent e669f6b commit ef94b56
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
tags:
- 'v[0-9]+.[0-9]+**'

env:
GO111MODULE: auto

jobs:

build_hjson-cli_releases:
Expand All @@ -21,6 +24,10 @@ jobs:

- name: Build the ${{ runner.os }} hjson-cli binary
run: |
mkdir -p ~/go/src/github.com/hjson
cd ..
cp -r hjson-go ~/go/src/github.com/hjson/
cd hjson-go
mkdir binaries
cd hjson-cli
go build
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: test
on: [push, pull_request]
env:
GO111MODULE: auto
jobs:
test:
runs-on: ${{ matrix.os }}
Expand All @@ -9,8 +11,12 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- run: |
mkdir -p ~/go/src/github.com/hjson
cd ..
cp -r hjson-go ~/go/src/github.com/hjson/
- run: go version
- run: go test -v
- run: |
cd hjson-cli
cd ~/go/src/github.com/hjson/hjson-go/hjson-cli
go install -i
3 changes: 0 additions & 3 deletions go.mod

This file was deleted.

0 comments on commit ef94b56

Please sign in to comment.