diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 476a006..1a50df4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -19,12 +19,9 @@ stages: variables: # Note: If GOLANG_VERSION below is bumped up in the future, changes would be needed to at least the following files # YDBGo repo : Dockerfile - # YDBOcto repo : .gitlab-ci.yml - # YDBOcto repo : Dockerfile-Tests - # YDBOcto repo : Dockerfile-Tests.centos # There might be more files to change in the future. # Search for "GOLANG_VERSION" name in all YDB repos to find places that need change. - GOLANG_VERSION: 1.13.8 + GOLANG_VERSION: 1.18.1 before_script: - apt-get update && apt-get install -y --no-install-recommends wget ca-certificates git g++ gcc libc6-dev make pkg-config && rm -rf /var/lib/apt/lists/* @@ -64,40 +61,20 @@ before_script: # # In general, test the latest point release of each major version # -unit_tests1.13.8_tests: +unit_tests1.18.10: extends: .unit_tests variables: - GOLANG_VERSION: "1.13.8" + GOLANG_VERSION: "1.18.10" -unit_tests1.14.13_tests: +unit_tests1.19.9: extends: .unit_tests variables: - GOLANG_VERSION: "1.14.13" + GOLANG_VERSION: "1.19.9" -unit_tests1.15.15_tests: +unit_tests1.20.4: extends: .unit_tests variables: - GOLANG_VERSION: "1.15.15" - -unit_tests1.16.15: - extends: .unit_tests - variables: - GOLANG_VERSION: "1.16.15" - -unit_tests1.17.13: - extends: .unit_tests - variables: - GOLANG_VERSION: "1.17.13" - -unit_tests1.18.9: - extends: .unit_tests - variables: - GOLANG_VERSION: "1.18.9" - -unit_tests1.19.4: - extends: .unit_tests - variables: - GOLANG_VERSION: "1.19.4" + GOLANG_VERSION: "1.20.4" race_detector: stage: test @@ -137,7 +114,7 @@ commit-verify: lint_code: stage: test variables: - GOLANG_VERSION: "1.18.9" + GOLANG_VERSION: "1.18.10" script: - go get -u golang.org/x/lint/golint - find / -name "*lint*" diff --git a/Dockerfile b/Dockerfile index 88e0183..de67799 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,7 +31,7 @@ RUN apt-get update && \ # Install go ENV GOPATH /go RUN mkdir /go -ENV GOLANG_VERSION 1.13.8 +ENV GOLANG_VERSION 1.18.1 ENV PATH=$GOPATH/bin:/usr/local/go/bin:$PATH RUN wget -O go.tgz -q https://golang.org/dl/go${GOLANG_VERSION}.linux-amd64.tar.gz && \ tar -C /usr/local -xzf go.tgz && \ diff --git a/doc.go b/doc.go index 948c00e..b437625 100644 --- a/doc.go +++ b/doc.go @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////// // // -// Copyright (c) 2018-2022 YottaDB LLC and/or its subsidiaries. // +// Copyright (c) 2018-2023 YottaDB LLC and/or its subsidiaries. // // All rights reserved. // // // // This source code contains the intellectual property // @@ -18,7 +18,7 @@ YottaDB Quick Start Before starting, consider reading the introduction to YottaDB's data model at https://docs.yottadb.com/MultiLangProgGuide/MultiLangProgGuide.html#concepts The YottaDB Go wrapper requires a minimum YottaDB version of r1.34 and -is tested with a minimum Go version of 1.13. If the Go packages on +is tested with a minimum Go version of 1.18. If the Go packages on your operating system are older, and the Go wrapper does not work, please obtain and install a newer Go implementation. diff --git a/go.mod b/go.mod index 5590cd3..faf0429 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,11 @@ module lang.yottadb.com/go/yottadb -go 1.13 +go 1.18 -require github.com/stretchr/testify v1.4.0 +require github.com/stretchr/testify v1.8.2 + +require ( + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect +) diff --git a/yottadb.go b/yottadb.go index 31c8a39..f3a5dbd 100644 --- a/yottadb.go +++ b/yottadb.go @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////// // // -// Copyright (c) 2018-2022 YottaDB LLC and/or its subsidiaries. // +// Copyright (c) 2018-2023 YottaDB LLC and/or its subsidiaries. // // All rights reserved. // // // // This source code contains the intellectual property // @@ -12,7 +12,7 @@ // This package is a Go wrapper for a YottaDB database using the SimplaAPI interface. While the functional part // of this package runs OK with Go 1.10, certain external packages are used by the internal unit tests invoked -// by 'go test' that have been updated to use facilities only present in Go 1.13.0 and later. +// by 'go test' that have been updated to use facilities only present in Go 1.18.0 and later. // // This wrapper makes significant use of the 'cgo' facility to interface between this Go wrapper and the YottaDB // engine written in C. The cgo facility is described here: https://golang.org/cmd/cgo - Note that cgo imposes @@ -80,7 +80,7 @@ const MinimumYDBReleaseMinor int = 34 const MinimumYDBRelease string = "r1.34" // MinimumGoRelease - (string) Minimum version of Go to fully support this wrapper (including tests) -const MinimumGoRelease string = "go1.13" +const MinimumGoRelease string = "go1.18" // YDBHandlerFlag type is the flag type passed to yottadb.RegisterSignalNotify() to indicate when or if the driver should run the // YottaDB signal handler.