File tree 10 files changed +37
-19
lines changed
10 files changed +37
-19
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ Time to move on to the next stage!
29
29
30
30
Note: This section is for stages 2 and beyond.
31
31
32
- 1 . Ensure you have ` go (1.16+ ) ` installed locally
32
+ 1 . Ensure you have ` go (1.24 ) ` installed locally
33
33
1 . Run ` ./your_program.sh ` to run your program, which is implemented in
34
34
` app/main.go ` .
35
35
1 . Commit your changes and run ` git push origin master ` to submit your solution
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.22
11
- language_pack : go-1.22
10
+ # Available versions: go-1.24
11
+ language_pack : go-1.24
Original file line number Diff line number Diff line change 6
6
//
7
7
// DON'T EDIT THIS!
8
8
9
- module github/ com/codecrafters-io/sqlite-starter-go
9
+ module github. com/codecrafters-io/sqlite-starter-go
10
10
11
- go 1.22
11
+ go 1.24.0
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
+ # syntax=docker/dockerfile:1.7-labs
1
2
FROM golang:1.22-alpine
2
3
3
- COPY go.mod /app/ go.mod
4
- COPY go.sum /app/ go.sum
4
+ # Ensures the container is re-built if go.mod or go.sum changes
5
+ ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS= " go.mod, go.sum"
5
6
6
7
WORKDIR /app
7
8
8
- # Starting from Go 1.20, the go standard library is no loger compiled
9
- # setting the GODEBUG environment to "installgoroot=all" restores the old behavior
9
+ # .git & README.md are unique per-repository. We ignore them on first copy to prevent cache misses
10
+ COPY --exclude=.git --exclude=README.md . /app
11
+
12
+ # Starting from Go 1.20, the go standard library is no loger compiled.
13
+ # Setting GODEBUG to "installgoroot=all" restores the old behavior
10
14
RUN GODEBUG="installgoroot=all" go install std
11
15
12
16
RUN go mod download
13
-
14
- ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="go.mod,go.sum"
Original file line number Diff line number Diff line change
1
+ # syntax=docker/dockerfile:1.7-labs
2
+ FROM golang:1.24-alpine
3
+
4
+ # Ensures the container is re-built if go.mod or go.sum changes
5
+ ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="go.mod,go.sum"
6
+
7
+ WORKDIR /app
8
+
9
+ # .git & README.md are unique per-repository. We ignore them on first copy to prevent cache misses
10
+ COPY --exclude=.git --exclude=README.md . /app
11
+
12
+ # Starting from Go 1.20, the go standard library is no loger compiled.
13
+ # Setting GODEBUG to "installgoroot=all" restores the old behavior
14
+ RUN GODEBUG="installgoroot=all" go install std
15
+
16
+ RUN go mod download
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ Time to move on to the next stage!
29
29
30
30
Note: This section is for stages 2 and beyond.
31
31
32
- 1 . Ensure you have ` go (1.16+ ) ` installed locally
32
+ 1 . Ensure you have ` go (1.24 ) ` installed locally
33
33
1 . Run ` ./your_program.sh ` to run your program, which is implemented in
34
34
` app/main.go ` .
35
35
1 . Commit your changes and run ` git push origin master ` to submit your solution
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.22
11
- language_pack : go-1.22
10
+ # Available versions: go-1.24
11
+ language_pack : go-1.24
Original file line number Diff line number Diff line change 6
6
//
7
7
// DON'T EDIT THIS!
8
8
9
- module github/ com/codecrafters-io/sqlite-starter-go
9
+ module github. com/codecrafters-io/sqlite-starter-go
10
10
11
- go 1.22
11
+ go 1.24.0
12
12
13
13
require github.com/xwb1989/sqlparser v0.0.0-20180606152119-120387863bf2
Original file line number Diff line number Diff line change 6
6
//
7
7
// DON'T EDIT THIS!
8
8
9
- module github/ com/codecrafters-io/sqlite-starter-go
9
+ module github. com/codecrafters-io/sqlite-starter-go
10
10
11
- go 1.22
11
+ go 1.24.0
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
1
attributes :
2
- required_executable : go (1.16+ )
2
+ required_executable : go (1.24 )
3
3
user_editable_file : app/main.go
You can’t perform that action at this time.
0 commit comments