Skip to content

Commit

Permalink
Removes vendoring and updates to Go 1.18 (#18)
Browse files Browse the repository at this point in the history
This updates to Go 1.18 and removes the vendor directory.

Per Go's release policy, Go 1.14 has been unsupported for a while.

As a part of moving to 1.18, this also removes vendoring as recently
merged in api and pkg.

Signed-off-by: Adrian Cole <adrian@tetrate.io>

Signed-off-by: Adrian Cole <adrian@tetrate.io>
  • Loading branch information
codefromthecrypt committed Oct 31, 2022
1 parent 8270eff commit 616c1ff
Show file tree
Hide file tree
Showing 89 changed files with 27 additions and 25,287 deletions.
38 changes: 20 additions & 18 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,37 +12,39 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: golangci-lint
uses: reviewdog/action-golangci-lint@v1
uses: reviewdog/action-golangci-lint@v2
with:
golangci_lint_flags: "--enable-all --timeout=10m --exclude-use-default=false --tests=false --disable=gochecknoinits,gochecknoglobals,exhaustive,nakedret,exhaustivestruct"
workdir: proxywasm

build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Check out code
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.14.15
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
cache: true

- name: Build
run: go build -v ./proxywasm/...
- name: Build
run: go build -v ./proxywasm/...

test:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Check out code
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.14.15
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
cache: true

- name: Test
run: go test -v ./proxywasm/...
- name: Test
run: go test -v ./proxywasm/...
8 changes: 7 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
module mosn.io/proxy-wasm-go-host

go 1.14
go 1.18

require (
github.com/stretchr/testify v1.7.1
github.com/wasmerio/wasmer-go v1.0.4
)

require (
github.com/davecgh/go-spew v1.1.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
)
15 changes: 0 additions & 15 deletions vendor/github.com/davecgh/go-spew/LICENSE

This file was deleted.

152 changes: 0 additions & 152 deletions vendor/github.com/davecgh/go-spew/spew/bypass.go

This file was deleted.

38 changes: 0 additions & 38 deletions vendor/github.com/davecgh/go-spew/spew/bypasssafe.go

This file was deleted.

0 comments on commit 616c1ff

Please sign in to comment.