diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2022-10-28 09:44:04 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2022-11-09 11:54:55 +0300 |
commit | b7badff4dea95767cff02b7ce4e6ba911b39b003 (patch) | |
tree | c8e13faa415065169b969c88956696d61d61fa5b | |
parent | 74a7785251b274fee77b86ae888641164e482d30 (diff) |
go: Add support for Go 1.19
Update the relevant infrastructure to support Go 1.19. Update our
README.md to reflect this change.
-rw-r--r-- | .gitlab-ci.yml | 10 | ||||
-rw-r--r-- | .tool-versions | 2 | ||||
-rw-r--r-- | README.md | 2 |
3 files changed, 8 insertions, 6 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 66ea51cd0..664cef42f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,7 +16,7 @@ variables: UBI_VERSION: "8.6" # We use Gitaly's Git version by default. GIT_VERSION: "default" - GO_VERSION: "1.18" + GO_VERSION: "1.19" RUBY_VERSION: "2.7" POSTGRES_VERSION: "12.6-alpine" PGBOUNCER_VERSION: "1.16.1" @@ -155,7 +155,7 @@ build: - _support/test-boot . ${TEST_BOOT_ARGS} parallel: matrix: - - GO_VERSION: [ "1.18" ] + - GO_VERSION: [ "1.18", "1.19" ] TEST_BOOT_ARGS: "--bundled-git" - GIT_VERSION: "v2.37.0" @@ -180,7 +180,7 @@ build:binaries: expire_in: 6 months parallel: matrix: - - GO_VERSION: [ "1.18" ] + - GO_VERSION: [ "1.18", "1.19" ] test: <<: *test_definition @@ -188,7 +188,7 @@ test: matrix: # The following jobs all test with our default Git version, which is # using bundled Git binaries. - - GO_VERSION: [ "1.18" ] + - GO_VERSION: [ "1.18", "1.19" ] TEST_TARGET: test - TEST_TARGET: [ test-with-proxies, test-with-praefect, race-go ] # We also verify that things work as expected with a non-bundled Git @@ -285,6 +285,8 @@ test:fips: matrix: - TEST_TARGET: [ test, test-with-praefect ] FIPS_MODE: "YesPlease" + # There is no Go 1.19 release yet for the FIPS-based images. + GO_VERSION: "1.18" rules: # When running in a fork of Gitaly we don't have the runners available, and # consequentially this job would fail anyway. So we configure the job to be diff --git a/.tool-versions b/.tool-versions index b502cd0ff..57145a95d 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,3 +1,3 @@ # Versions of Gitaly dependencies managed by asdf. -golang 1.18.7 +golang 1.19.2 1.18.7 ruby 2.7.5 @@ -55,7 +55,7 @@ GitLab.com, read about our [observability story](doc/observability.md)! Most users won't install Gitaly on its own. It is already included in [your GitLab installation](https://about.gitlab.com/install/). -Gitaly requires Go 1.18 and Ruby 2.7. Run `make` to download and +Gitaly requires Go 1.18 or Go 1.19 and Ruby 2.7. Run `make` to download and compile Ruby dependencies, and to compile the Gitaly Go executable. Gitaly uses `git`. Versions `2.37.0` and newer are supported. |