Skip to content

Commit

Permalink
CC-853 update to go-1.19
Browse files Browse the repository at this point in the history
  • Loading branch information
libmartinito committed Dec 11, 2023
1 parent c2f01af commit 6088bbe
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 0 deletions.
11 changes: 11 additions & 0 deletions compiled_starters/go/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// DON'T EDIT THIS!
//
// Codecrafters relies on this file being intact to run tests successfully. Any changes
// here will not reflect when CodeCrafters tests your code, and might even cause build
// failures.
//
// DON'T EDIT THIS!

module github.com/codecrafters-io/redis-starter-go

go 1.19
Empty file added compiled_starters/go/go.sum
Empty file.
9 changes: 9 additions & 0 deletions dockerfiles/go-1.19.Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
FROM golang:1.19-alpine

ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="go.mod,go.sum"

WORKDIR /app

COPY go.mod go.sum ./

RUN go mod graph | awk '{if ($1 !~ "@") print $2}' | xargs -r go get

11 changes: 11 additions & 0 deletions solutions/go/01-init/code/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// DON'T EDIT THIS!
//
// Codecrafters relies on this file being intact to run tests successfully. Any changes
// here will not reflect when CodeCrafters tests your code, and might even cause build
// failures.
//
// DON'T EDIT THIS!

module github.com/codecrafters-io/redis-starter-go

go 1.19
Empty file.
4 changes: 4 additions & 0 deletions starter-repository-definitions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@
target: codecrafters.yml
- source: starter_templates/go/app/server.go
target: app/server.go
- source: starter_templates/go/go.mod
target: go.mod
- source: starter_templates/go/go.sum
target: go.sum
- source: starter_templates/go/spawn_redis_server.sh
target: spawn_redis_server.sh
- source: starter_templates/.gitattributes
Expand Down
11 changes: 11 additions & 0 deletions starter_templates/go/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// DON'T EDIT THIS!
//
// Codecrafters relies on this file being intact to run tests successfully. Any changes
// here will not reflect when CodeCrafters tests your code, and might even cause build
// failures.
//
// DON'T EDIT THIS!

module github.com/codecrafters-io/redis-starter-go

go 1.19
Empty file added starter_templates/go/go.sum
Empty file.

0 comments on commit 6088bbe

Please sign in to comment.