-
Notifications
You must be signed in to change notification settings - Fork 29
[SQLite] CC-1745: Upgrade Bun to v1.2, Rust to v1.86 #135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# syntax=docker/dockerfile:1.7-labs | ||
FROM oven/bun:1.2-alpine | ||
|
||
ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="package.json,bun.lockb" | ||
|
||
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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Invalid COPY flag: Apply this diff: -COPY --exclude=.git --exclude=README.md . /app
+COPY . /app And ensure your project root contains a
🧰 Tools🪛 Hadolint (2.12.0)[error] 9-9: invalid flag: --exclude (DL1000) 🤖 Prompt for AI Agents
|
||
|
||
# For reproducible builds. | ||
# This will install the exact versions of each package specified in the lockfile. | ||
# If package.json disagrees with bun.lockb, Bun will exit with an error. The lockfile will not be updated. | ||
RUN bun install --frozen-lockfile | ||
|
||
# If the node_modules directory exists, move it to /app-cached | ||
RUN mkdir -p /app-cached | ||
RUN if [ -d "/app/node_modules" ]; then mv /app/node_modules /app-cached; fi |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# syntax=docker/dockerfile:1.7-labs | ||
FROM rust:1.86-bookworm | ||
|
||
# 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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Invalid Apply this diff: -COPY --exclude=.git --exclude=README.md . /app
+COPY . /app And ensure your
🧰 Tools🪛 Hadolint (2.12.0)[error] 10-10: invalid flag: --exclude (DL1000) 🤖 Prompt for AI Agents
|
||
|
||
# This runs cargo build | ||
RUN .codecrafters/compile.sh |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,13 @@ | ||||||
# syntax=docker/dockerfile:1.7-labs | ||||||
FROM rust:1.87-bookworm | ||||||
|
||||||
# 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 | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Invalid -COPY --exclude=.git --exclude=README.md . /app
+COPY . /app Ensure
📝 Committable suggestion
Suggested change
🧰 Tools🪛 Hadolint (2.12.0)[error] 10-10: invalid flag: --exclude (DL1000) 🤖 Prompt for AI Agents
|
||||||
|
||||||
# This runs cargo build | ||||||
RUN .codecrafters/compile.sh |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
attributes: | ||
required_executable: cargo (1.85) | ||
required_executable: cargo (1.87) | ||
user_editable_file: src/main.rs |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
attributes: | ||
required_executable: bun (1.1) | ||
required_executable: bun (1.2) | ||
user_editable_file: app/main.ts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Verify Dockerfile for Rust 1.87 exists
Ensure that
dockerfiles/rust-1.87.Dockerfile
is committed and referenced by any CI or build pipelines.Run:
🏁 Script executed:
Length of output: 37
🏁 Script executed:
Length of output: 1728
🏁 Script executed:
Length of output: 258
Ensure CI workflows include the new Rust 1.87 Dockerfile
We’ve confirmed that
dockerfiles/rust-1.87.Dockerfile
is present, but no references to it were found in any CI or GitHub Actions workflow files. Please update your pipeline configurations to build/test with the Rust 1.87 image.• File location:
dockerfiles/rust-1.87.Dockerfile
• No matches in
.github/
workflows or other CI configs• Action: Add or update your CI manifests (e.g.
.github/workflows/*.yml
) to reference this new Dockerfile so Rust 1.87 is properly built and tested.🤖 Prompt for AI Agents