File tree Expand file tree Collapse file tree 15 files changed +38
-19
lines changed
Expand file tree Collapse file tree 15 files changed +38
-19
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ and more.
1616
1717# Passing the first stage
1818
19- The entry point for your HTTP server implementation is in ` app/server .go ` . Study
19+ The entry point for your HTTP server implementation is in ` app/main .go ` . Study
2020and uncomment the relevant code, and push your changes to pass the first stage:
2121
2222``` sh
@@ -30,8 +30,8 @@ Time to move on to the next stage!
3030
3131Note: This section is for stages 2 and beyond.
3232
33- 1 . Ensure you have ` go (1.19 ) ` installed locally
33+ 1 . Ensure you have ` go (1.24 ) ` installed locally
34341 . Run ` ./your_program.sh ` to run your program, which is implemented in
35- ` app/server .go ` .
35+ ` app/main .go ` .
36361 . Commit your changes and run ` git push origin master ` to submit your solution
3737 to CodeCrafters. Test output will be streamed to your terminal.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ debug: false
77# Use this to change the Go version used to run your code
88# on Codecrafters.
99#
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 88
99module github.com/codecrafters-io/http-server-starter-go
1010
11- go 1.22
11+ go 1.24.0
Original file line number Diff line number Diff line change 1+ # syntax=docker/dockerfile:1.7-labs
12FROM golang:1.22-alpine
23
4+ # Ensures the container is re-built if go.mod or go.sum changes
35ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="go.mod,go.sum"
46
57WORKDIR /app
68
7- COPY go.mod go.sum ./
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
811
9- # Starting from Go 1.20, the go standard library is no loger compiled
10- # setting the GODEBUG environment to "installgoroot=all" restores the old behavior
12+ # Starting from Go 1.20, the go standard library is no loger compiled.
13+ # Setting GODEBUG to "installgoroot=all" restores the old behavior
1114RUN GODEBUG="installgoroot=all" go install std
1215
1316RUN go mod download
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 @@ -16,7 +16,7 @@ and more.
1616
1717# Passing the first stage
1818
19- The entry point for your HTTP server implementation is in ` app/server .go ` . Study
19+ The entry point for your HTTP server implementation is in ` app/main .go ` . Study
2020and uncomment the relevant code, and push your changes to pass the first stage:
2121
2222``` sh
@@ -30,8 +30,8 @@ Time to move on to the next stage!
3030
3131Note: This section is for stages 2 and beyond.
3232
33- 1 . Ensure you have ` go (1.19 ) ` installed locally
33+ 1 . Ensure you have ` go (1.24 ) ` installed locally
34341 . Run ` ./your_program.sh ` to run your program, which is implemented in
35- ` app/server .go ` .
35+ ` app/main .go ` .
36361 . Commit your changes and run ` git push origin master ` to submit your solution
3737 to CodeCrafters. Test output will be streamed to your terminal.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ debug: false
77# Use this to change the Go version used to run your code
88# on Codecrafters.
99#
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 88
99module github.com/codecrafters-io/http-server-starter-go
1010
11- go 1.22
11+ go 1.24.0
You can’t perform that action at this time.
0 commit comments