Skip to content

Commit

Permalink
Update package versions (Boeing#116)
Browse files Browse the repository at this point in the history
* updating dependency versions

* only require >= 1.21
  • Loading branch information
kehoecj authored and shiina4119 committed Oct 4, 2024
1 parent 3c368e2 commit f3853a7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
go-version: '1.22'

- name: Download dependencies
run: go mod download
Expand All @@ -34,7 +34,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
go-version: '1.22'

- name: Static Analysis
run: go vet ./...
Expand All @@ -51,7 +51,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
go-version: '1.22'

- name: Build
run: |
Expand All @@ -72,7 +72,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
go-version: '1.22'

- name: Unit test
run: go test -v -cover -coverprofile coverage.out ./...
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
go_version: 1.21
go_version: 1.22
binary_name: "validator"
ldflags: -w -s -extldflags "-static" -X github.com/Boeing/config-file-validator.version=${{ github.event.release.tag_name }}
build_tags: -tags netgo
Expand All @@ -46,7 +46,7 @@ jobs:
strategy:
matrix:
include:
- base: "alpine:3.18"
- base: "alpine:3.19"
postfix: ""
- base: "scratch"
postfix: "-scratch"
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG BASE_IMAGE=alpine:3.18
ARG BASE_IMAGE=alpine:3.19

FROM golang:1.21 as go-builder
FROM golang:1.22 as go-builder
ARG VALIDATOR_VERSION=unknown
COPY . /build/
WORKDIR /build
Expand Down
2 changes: 1 addition & 1 deletion index.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ docker run -it --rm -v /path/to/config/files:/test config-file-validator:1.5.0 /
![Docker Standard Run](./img/docker_run.png)

## Build
The project can be downloaded and built from source using an environment with golang 1.21 installed. After a successful build, the binary can be moved to a location on your operating system PATH.
The project can be downloaded and built from source using an environment with golang 1.21+ installed. After a successful build, the binary can be moved to a location on your operating system PATH.

### MacOS
#### Build
Expand Down

0 comments on commit f3853a7

Please # to comment.