Skip to content

Commit

Permalink
Bump to Go 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
mpapenbr committed Nov 14, 2023
1 parent 3f2aeb0 commit bb00e88
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 18 deletions.
11 changes: 7 additions & 4 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"name": "Go",

"image": "mcr.microsoft.com/devcontainers/go:1.20",
"image": "mcr.microsoft.com/devcontainers/go:1.21",
// alternative: use the bullseye image
// "image": "mcr.microsoft.com/devcontainers/go:1.20-bullseye",
"runArgs": [
Expand All @@ -26,7 +26,9 @@
},
"[go]": {
"editor.rulers": [90]
}
},
"editor.defaultFormatter": "golang.go",
"editor.formatOnSave": true
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
Expand All @@ -35,7 +37,8 @@
"esbenp.prettier-vscode",
"github.vscode-pull-request-github",
"EditorConfig.EditorConfig",
"cschleiden.vscode-github-actions"
"cschleiden.vscode-github-actions",
"GitHub.copilot"
]
}
},
Expand All @@ -53,7 +56,7 @@
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "vscode",
"features": {
"ghcr.io/devcontainers/features/docker-in-docker": "20.10",
"ghcr.io/devcontainers/features/docker-in-docker": "latest",
"ghcr.io/devcontainers-contrib/features/pre-commit": "latest"
}
}
2 changes: 1 addition & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
golangci-lint:
strategy:
matrix:
go-version: [1.20.x]
go-version: [1.21.x]
os: [ubuntu-latest]

runs-on: ${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

- uses: actions/setup-go@v3
with:
go-version: "1.20"
go-version: "1.21"

- name: Login to Github Container Registry
uses: docker/login-action@v2
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ on:
workflow_dispatch:
push:
branches:
- '**'
- "**"
pull_request:
types: [ opened, reopened ]
types: [opened, reopened]

jobs:
tests:
strategy:
matrix:
go-version: [ 1.20.x ]
os: [ ubuntu-latest ]
go-version: [1.21.x]
os: [ubuntu-latest]

runs-on: ${{ matrix.os }}

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/mpapenbr/iracelog-wamp-router

go 1.20
go 1.21

require (
github.com/gammazero/nexus/v3 v3.2.1
Expand Down
16 changes: 9 additions & 7 deletions setuplinks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,18 @@ if [ ! -e $HOME/.gitconfig.local ]; then
fi
fi

# linking .cobra.yaml
if [ ! -e $HOME/.cobra.yaml ]; then
if [ -f $PWD/.cobra.yaml ]; then
echo "Linking .cobra.yaml"
ln -s $PWD/.cobra.yaml $HOME/.cobra.yaml
fi
fi

# linking .npmrc
if [ ! -e $HOME/.npmrc ]; then
if [ -f .npmrc ]; then
if [ -f $PWD/.npmrc ]; then
echo "Linking .npmrc"
ln -s $PWD/.npmrc $HOME/.npmrc
fi
fi

# linking .cobra.yaml
if [ ! -e $HOME/.cobra.yaml ]; then
echo "Linking .cobra.yaml"
ln -s $PWD/.cobra.yaml $HOME/.cobra.yaml
fi

0 comments on commit bb00e88

Please sign in to comment.