From 59e2dfba883573a2cf1fd1829e1d52ca4896399e Mon Sep 17 00:00:00 2001 From: Abhishek Gaikwad Date: Fri, 8 Sep 2023 16:05:14 -0700 Subject: [PATCH] build: transition to Go 1.21 Signed-off-by: Abhishek Gaikwad --- bench/go-http-server/go.mod | 2 +- transformers/README.md | 4 ++-- transformers/go_echo/Dockerfile | 2 +- transformers/go_echo/src/go.mod | 2 +- transformers/go_hello_world/Dockerfile | 2 +- transformers/go_hello_world/src/go.mod | 2 +- transformers/tar2tf/Dockerfile | 2 +- transformers/tar2tf/src/go.mod | 2 +- transformers/tar2tf/src/go.sum | 9 +-------- 9 files changed, 10 insertions(+), 17 deletions(-) diff --git a/bench/go-http-server/go.mod b/bench/go-http-server/go.mod index 1e03b32..5e8ea5d 100644 --- a/bench/go-http-server/go.mod +++ b/bench/go-http-server/go.mod @@ -1,3 +1,3 @@ module main -go 1.20 +go 1.21 diff --git a/transformers/README.md b/transformers/README.md index df96b2d..3c9f326 100644 --- a/transformers/README.md +++ b/transformers/README.md @@ -5,10 +5,10 @@ AIStore hosts a variety of sample transformers in the form of Docker images to b | Transformer | Language | Communication Mechanisms | Description | | ---------- | -------- | ------------------------ | ----------- | | [`echo`](https://github.com/NVIDIA/ais-etl/tree/master/transformers/echo) | `python:3.11` | `hpull`, `hpush`, `hrev` | Returns the original data, with an `MD5` sum in the response headers. | -| [`go_echo`](https://github.com/NVIDIA/ais-etl/tree/master/transformers/go_echo) | `golang:1.20` | `hpull`, `hpush`, `hrev` | Returns the original data, with an `MD5` sum in the response headers. | +| [`go_echo`](https://github.com/NVIDIA/ais-etl/tree/master/transformers/go_echo) | `golang:1.21` | `hpull`, `hpush`, `hrev` | Returns the original data, with an `MD5` sum in the response headers. | | [`hello_world`](https://github.com/NVIDIA/ais-etl/tree/master/transformers/hello_world) | `python:3.11` | `hpull`, `hpush`, `hrev` | Returns `Hello World!` string on any request. | | [`md5`](https://github.com/NVIDIA/ais-etl/tree/master/transformers/md5) | `python:3.11` | `hpull`, `hpush`, `hrev` | Returns the `MD5` sum of the original data as the response. | -| [`tar2tf`](https://github.com/NVIDIA/ais-etl/tree/master/transformers/tar2tf) | `golang:1.20` | `hrev` | Returns the transformed TensorFlow compatible data for the input `TAR` files. | +| [`tar2tf`](https://github.com/NVIDIA/ais-etl/tree/master/transformers/tar2tf) | `golang:1.21` | `hrev` | Returns the transformed TensorFlow compatible data for the input `TAR` files. | | [`compress`](https://github.com/NVIDIA/ais-etl/tree/master/transformers/compress) | `python:3.11` | `hpull`, `hpush`, `hrev` | Returns the compressed or decompressed data using `gzip` or `bz2`. | | [`ffmpeg`](https://github.com/NVIDIA/ais-etl/tree/master/transformers/ffmpeg) | `python:3.11` | `hpull`, `hpush`, `hrev` | Returns the `FFMPEG` decoded data. | | [`keras`](https://github.com/NVIDIA/ais-etl/tree/master/transformers/keras_preprocess) | `python:slim` | `hpull`, `hpush`, `hrev` | Returns the transformed images using `Keras` pre-processing. | diff --git a/transformers/go_echo/Dockerfile b/transformers/go_echo/Dockerfile index 2dc0593..e32ff48 100644 --- a/transformers/go_echo/Dockerfile +++ b/transformers/go_echo/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.20-alpine +FROM golang:1.21-alpine RUN apk add --no-cache git diff --git a/transformers/go_echo/src/go.mod b/transformers/go_echo/src/go.mod index 616beb5..4230ec9 100644 --- a/transformers/go_echo/src/go.mod +++ b/transformers/go_echo/src/go.mod @@ -1,3 +1,3 @@ module github.com/NVIDIA/ais-etl/transformers/go_echo/src -go 1.20 +go 1.21 diff --git a/transformers/go_hello_world/Dockerfile b/transformers/go_hello_world/Dockerfile index 00b8a16..aded129 100644 --- a/transformers/go_hello_world/Dockerfile +++ b/transformers/go_hello_world/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.20-alpine3.18 +FROM golang:1.21-alpine3.18 RUN apk add --no-cache git diff --git a/transformers/go_hello_world/src/go.mod b/transformers/go_hello_world/src/go.mod index 616beb5..4230ec9 100644 --- a/transformers/go_hello_world/src/go.mod +++ b/transformers/go_hello_world/src/go.mod @@ -1,3 +1,3 @@ module github.com/NVIDIA/ais-etl/transformers/go_echo/src -go 1.20 +go 1.21 diff --git a/transformers/tar2tf/Dockerfile b/transformers/tar2tf/Dockerfile index 49fd46c..c017292 100644 --- a/transformers/tar2tf/Dockerfile +++ b/transformers/tar2tf/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.20-alpine +FROM golang:1.21-alpine RUN apk add --no-cache git diff --git a/transformers/tar2tf/src/go.mod b/transformers/tar2tf/src/go.mod index cad2522..9f67b92 100644 --- a/transformers/tar2tf/src/go.mod +++ b/transformers/tar2tf/src/go.mod @@ -1,6 +1,6 @@ module github.com/NVIDIA/ais-etl/transformers/tar2tf/src -go 1.20 +go 1.21 require ( github.com/NVIDIA/go-tfdata v0.3.2-0.20200714114828-1432f6c70e3a diff --git a/transformers/tar2tf/src/go.sum b/transformers/tar2tf/src/go.sum index d27e5a1..4ce4e3b 100644 --- a/transformers/tar2tf/src/go.sum +++ b/transformers/tar2tf/src/go.sum @@ -8,27 +8,22 @@ github.com/disintegration/imaging v1.6.2/go.mod h1:44/5580QXChDfwIclfc/PCwrr44am github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= -github.com/golang/protobuf v1.4.0-rc.4 h1:+EOh4OY6tjM6ZueeUKinl1f0U2820HzQOuf1iqMnsks= github.com/golang/protobuf v1.4.0-rc.4/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.4.0 h1:xsAVV57WRhGj6kEIi8ReJzQlHHqcBYCElAvkovg3B/4= github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.10 h1:Kz6Cvnvv2wGdaG/V8yMvfkmNiXq9Ya2KUv4rouJJr68= -github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= -github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 h1:ZqeYNhU3OHLH3mGKHDcjJRFFRrJa6eAM5H+CtDdOsPc= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742 h1:Esafd1046DLDQ0W1YjYsBW+p8U2u7vzgW2SQVmlNazg= github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= @@ -40,7 +35,6 @@ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UV github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/image v0.0.0-20191009234506-e7c1f5e7dbb8 h1:hVwzHzIUGRjiF7EcUjqNxk3NCfkPxbDKRdnNE1Rpg0U= golang.org/x/image v0.0.0-20191009234506-e7c1f5e7dbb8/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= golang.org/x/image v0.11.0 h1:ds2RoQvBvYTiJkwpSFDwCcDFNX7DqjL2WsUgTNk0Ooo= golang.org/x/image v0.11.0/go.mod h1:bglhjqbqVuEb9e9+eNR45Jfu7D+T4Qan+NhQk8Ck2P8= @@ -78,7 +72,6 @@ google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLY google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= -google.golang.org/protobuf v1.20.1 h1:ESRXHgpUBG5D2I5mmsQIyYxB/tQIZfSZ8wLyFDf/N/U= google.golang.org/protobuf v1.20.1/go.mod h1:KqelGeouBkcbcuB3HCk4/YH2tmNLk6YSWA5LIWeI/lY= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=