Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compiled_starters/go/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Time to move on to the next stage!

Note: This section is for stages 2 and beyond.

1. Ensure you have `go (1.24)` installed locally
1. Ensure you have `go (1.25)` installed locally
1. Run `./your_program.sh` to run your program, which is implemented in
`app/main.go`.
1. Commit your changes and run `git push origin master` to submit your solution
Expand Down
4 changes: 2 additions & 2 deletions compiled_starters/go/codecrafters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ debug: false
# Use this to change the Go version used to run your code
# on Codecrafters.
#
# Available versions: go-1.24
buildpack: go-1.24
# Available versions: go-1.25
buildpack: go-1.25
2 changes: 1 addition & 1 deletion compiled_starters/go/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/codecrafters-io/sqlite-starter-go

go 1.24.0
go 1.25.0

require github.com/xwb1989/sqlparser v0.0.0-20180606152119-120387863bf2
4 changes: 2 additions & 2 deletions compiled_starters/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
name = "codecrafters-sqlite"
version = "0.1.0"
authors = ["Codecrafters <[email protected]>"]
edition = "2021"
rust-version = "1.80"
edition = "2024"
rust-version = "1.91"

[dependencies]
anyhow = "1.0.68" # error handling
Expand Down
2 changes: 1 addition & 1 deletion compiled_starters/rust/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Time to move on to the next stage!

Note: This section is for stages 2 and beyond.

1. Ensure you have `cargo (1.87)` installed locally
1. Ensure you have `cargo (1.91)` installed locally
1. Run `./your_program.sh` to run your program, which is implemented in
`src/main.rs`. This command compiles your Rust project, so it might be slow
the first time you run it. Subsequent runs will be fast.
Expand Down
4 changes: 2 additions & 2 deletions compiled_starters/rust/codecrafters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ debug: false
# Use this to change the Rust version used to run your code
# on Codecrafters.
#
# Available versions: rust-1.88
buildpack: rust-1.88
# Available versions: rust-1.91
buildpack: rust-1.91
2 changes: 1 addition & 1 deletion compiled_starters/rust/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use anyhow::{bail, Result};
use anyhow::{Result, bail};
use std::fs::File;
use std::io::prelude::*;

Expand Down
17 changes: 17 additions & 0 deletions dockerfiles/go-1.25.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# syntax=docker/dockerfile:1.7-labs
FROM golang:1.25-alpine

# Ensures the container is re-built if go.mod or go.sum changes
ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="go.mod,go.sum"

WORKDIR /app

# .git & README.md are unique per-repository. We ignore them on first copy to prevent cache misses
COPY --exclude=.git --exclude=README.md . /app

# Starting from Go 1.20, the go standard library is no loger compiled.
# Setting GODEBUG to "installgoroot=all" restores the old behavior
# hadolint ignore=DL3062
RUN GODEBUG="installgoroot=all" go install std

RUN go mod download
13 changes: 13 additions & 0 deletions dockerfiles/rust-1.91.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# syntax=docker/dockerfile:1.7-labs
FROM rust:1.91-trixie

# Rebuild the container if these files change
ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="Cargo.toml,Cargo.lock"

WORKDIR /app

# .git & README.md are unique per-repository. We ignore them on first copy to prevent cache misses
COPY --exclude=.git --exclude=README.md . /app

# This runs cargo build
RUN .codecrafters/compile.sh
2 changes: 1 addition & 1 deletion solutions/go/01-dr6/code/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Time to move on to the next stage!

Note: This section is for stages 2 and beyond.

1. Ensure you have `go (1.24)` installed locally
1. Ensure you have `go (1.25)` installed locally
1. Run `./your_program.sh` to run your program, which is implemented in
`app/main.go`.
1. Commit your changes and run `git push origin master` to submit your solution
Expand Down
4 changes: 2 additions & 2 deletions solutions/go/01-dr6/code/codecrafters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ debug: false
# Use this to change the Go version used to run your code
# on Codecrafters.
#
# Available versions: go-1.24
buildpack: go-1.24
# Available versions: go-1.25
buildpack: go-1.25
2 changes: 1 addition & 1 deletion solutions/go/01-dr6/code/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/codecrafters-io/sqlite-starter-go

go 1.24.0
go 1.25.0

require github.com/xwb1989/sqlparser v0.0.0-20180606152119-120387863bf2
4 changes: 2 additions & 2 deletions solutions/rust/01-dr6/code/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
name = "codecrafters-sqlite"
version = "0.1.0"
authors = ["Codecrafters <[email protected]>"]
edition = "2021"
rust-version = "1.80"
edition = "2024"
rust-version = "1.91"

[dependencies]
anyhow = "1.0.68" # error handling
Expand Down
2 changes: 1 addition & 1 deletion solutions/rust/01-dr6/code/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Time to move on to the next stage!

Note: This section is for stages 2 and beyond.

1. Ensure you have `cargo (1.87)` installed locally
1. Ensure you have `cargo (1.91)` installed locally
1. Run `./your_program.sh` to run your program, which is implemented in
`src/main.rs`. This command compiles your Rust project, so it might be slow
the first time you run it. Subsequent runs will be fast.
Expand Down
4 changes: 2 additions & 2 deletions solutions/rust/01-dr6/code/codecrafters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ debug: false
# Use this to change the Rust version used to run your code
# on Codecrafters.
#
# Available versions: rust-1.88
buildpack: rust-1.88
# Available versions: rust-1.91
buildpack: rust-1.91
2 changes: 1 addition & 1 deletion solutions/rust/01-dr6/code/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use anyhow::{bail, Result};
use anyhow::{Result, bail};
use std::fs::File;
use std::io::prelude::*;

Expand Down
2 changes: 1 addition & 1 deletion solutions/rust/01-dr6/diff/src/main.rs.diff
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@@ -1,36 +1,32 @@
use anyhow::{bail, Result};
use anyhow::{Result, bail};
use std::fs::File;
use std::io::prelude::*;

Expand Down
2 changes: 1 addition & 1 deletion starter_templates/go/code/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/codecrafters-io/sqlite-starter-go

go 1.24.0
go 1.25.0

require github.com/xwb1989/sqlparser v0.0.0-20180606152119-120387863bf2
2 changes: 1 addition & 1 deletion starter_templates/go/config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
attributes:
required_executable: go (1.24)
required_executable: go (1.25)
user_editable_file: app/main.go
4 changes: 2 additions & 2 deletions starter_templates/rust/code/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
name = "codecrafters-sqlite"
version = "0.1.0"
authors = ["Codecrafters <[email protected]>"]
edition = "2021"
rust-version = "1.80"
edition = "2024"
rust-version = "1.91"

[dependencies]
anyhow = "1.0.68" # error handling
Expand Down
2 changes: 1 addition & 1 deletion starter_templates/rust/code/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use anyhow::{bail, Result};
use anyhow::{Result, bail};
use std::fs::File;
use std::io::prelude::*;

Expand Down
2 changes: 1 addition & 1 deletion starter_templates/rust/config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
attributes:
required_executable: cargo (1.87)
required_executable: cargo (1.91)
user_editable_file: src/main.rs
Loading