Skip to content

Commit

Permalink
Update go to 1.22 (#1121)
Browse files Browse the repository at this point in the history
* Update Dockerfile use go 1.22.1

* Update go.mod use go 1.22

* Update config.yml use go 1.22

* Update contributing.rst go 1.22
  • Loading branch information
viveksing authored Mar 20, 2024
1 parent 09ea7d9 commit 857ab39
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2.1
jobs:
build:
docker:
- image: cimg/go:1.18
- image: cimg/go:1.22

environment:
GOPATH: /home/circleci/go
Expand Down Expand Up @@ -32,7 +32,7 @@ jobs:

deploy-master:
docker:
- image: cimg/go:1.18
- image: cimg/go:1.22

environment:
GOPATH: /home/circleci/go
Expand Down Expand Up @@ -88,7 +88,7 @@ jobs:

deploy-release:
docker:
- image: cimg/go:1.18
- image: cimg/go:1.22

environment:
GOPATH: /home/circleci/go
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.18.10 AS build-env
FROM golang:1.22.1 AS build-env
WORKDIR /usr/local/go/src/github.com/SpectoLabs/hoverfly
COPY . /usr/local/go/src/github.com/SpectoLabs/hoverfly
RUN cd core/cmd/hoverfly && CGO_ENABLED=0 GOOS=linux go install -ldflags "-s -w"
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Learn more about the `forking workflow here <https://www.atlassian.com/git/tutor
Building, running & testing
---------------------------

You will need `Go 1.18 <https://golang.org>`_ . Instructions on how to set up your Go environment can be `found here <https://golang.org/doc/install>`_.
You will need `Go 1.22 <https://golang.org>`_ . Instructions on how to set up your Go environment can be `found here <https://golang.org/doc/install>`_.

.. code:: bash
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/SpectoLabs/hoverfly

go 1.18
go 1.22

require (
github.com/ChrisTrenkamp/xsel v0.9.6
Expand Down

0 comments on commit 857ab39

Please sign in to comment.