File tree 7 files changed +28
-9
lines changed
solutions/go/01-init/code
7 files changed +28
-9
lines changed Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ debug: false
7
7
# Use this to change the Go version used to run your code
8
8
# on Codecrafters.
9
9
#
10
- # Available versions: go-1.21
11
- language_pack : go-1.21
10
+ # Available versions: go-1.22
11
+ language_pack : go-1.22
Original file line number Diff line number Diff line change 8
8
9
9
module github/com/codecrafters-io/sqlite-starter-go
10
10
11
- go 1.19
11
+ go 1.22
12
12
13
13
require github.com/xwb1989/sqlparser v0.0.0-20180606152119-120387863bf2
Original file line number Diff line number Diff line change
1
+ FROM golang:1.19-alpine
2
+
3
+ COPY go.mod /app/go.mod
4
+ COPY go.sum /app/go.sum
5
+
6
+ WORKDIR /app
7
+
8
+ RUN go mod download
9
+
10
+ # Starting from Go 1.20, the go standard library is no loger compiled
11
+ # setting the GODEBUG environment to "installgoroot=all" restores the old behavior
12
+ RUN GODEBUG="installgoroot=all" go install std
13
+
14
+ # Even though modules are downloaded, building them could take a while.
15
+ # Let's run go get on each module so that they're built ahead of time.
16
+ # Ref: https://github.com/montanaflynn/golang-docker-cache
17
+ RUN ash -c "set -exo pipefail; go mod graph | awk '{if (\$ 1 !~ \" @\" ) {print \$ 2}}' | xargs -r go get"
18
+
19
+ ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="go.mod,go.sum"
Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ debug: false
7
7
# Use this to change the Go version used to run your code
8
8
# on Codecrafters.
9
9
#
10
- # Available versions: go-1.21
11
- language_pack : go-1.21
10
+ # Available versions: go-1.22
11
+ language_pack : go-1.22
Original file line number Diff line number Diff line change 8
8
9
9
module github/com/codecrafters-io/sqlite-starter-go
10
10
11
- go 1.19
11
+ go 1.22
12
12
13
13
require github.com/xwb1989/sqlparser v0.0.0-20180606152119-120387863bf2
Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ language_pack: python-3.12
16
16
language_pack : swift-5.7
17
17
{{/ language_is_swift }}
18
18
{{# language_is_go }}
19
- # Available versions: go-1.21
20
- language_pack : go-1.21
19
+ # Available versions: go-1.22
20
+ language_pack : go-1.22
21
21
{{/ language_is_go }}
22
22
{{# language_is_php }}
23
23
# Available versions: php-7.4
Original file line number Diff line number Diff line change 8
8
9
9
module github/com/codecrafters-io/sqlite-starter-go
10
10
11
- go 1.19
11
+ go 1.22
12
12
13
13
require github.com/xwb1989/sqlparser v0.0.0-20180606152119-120387863bf2
You can’t perform that action at this time.
0 commit comments