update ci rust version

This commit is contained in:
Graham McIntire 2026-01-09 13:36:10 -06:00
parent 125b0f427e
commit fd1b02a6ea
No known key found for this signature in database
4 changed files with 10 additions and 10 deletions

View file

@ -17,7 +17,7 @@ variables:
# Test stage - compile and check code # Test stage - compile and check code
test: test:
stage: test stage: test
image: rust:1.82-alpine image: rust:1.83-alpine
before_script: before_script:
- apk add --no-cache musl-dev - apk add --no-cache musl-dev
script: script:

View file

@ -193,11 +193,11 @@ docker run --rm \
### Test Before Pushing ### Test Before Pushing
**Prerequisites**: Rust 1.82+ (required for Cargo.lock v4) **Prerequisites**: Rust 1.83+ (required by dependencies)
```bash ```bash
# Check Rust version # Check Rust version
rustc --version # Should be 1.82.0 or later rustc --version # Should be 1.83.0 or later
# Check compilation # Check compilation
cargo check --release cargo check --release
@ -300,12 +300,12 @@ Caused by:
lock file version `4` was found, but this version of Cargo does not understand this lock file lock file version `4` was found, but this version of Cargo does not understand this lock file
``` ```
**Cause**: Cargo.lock version 4 requires Rust 1.77+ **Cause**: Dependencies require Rust 1.83+
**Fix**: The CI configuration uses Rust 1.82. If you see this error: **Fix**: The CI configuration uses Rust 1.83. If you see this error:
1. Update `.gitlab-ci.yml` to use `rust:1.82-alpine` or later 1. Update `.gitlab-ci.yml` to use `rust:1.83-alpine` or later
2. Update `Dockerfile` to use `rust:1.82-alpine` or later 2. Update `Dockerfile` to use `rust:1.83-alpine` or later
3. Regenerate Cargo.lock: `cargo update` (if needed) 3. Local development: Update Rust with `rustup update stable`
### Pipeline Fails at Test Stage ### Pipeline Fails at Test Stage

View file

@ -1,5 +1,5 @@
# Build stage # Build stage
FROM rust:1.82-alpine AS builder FROM rust:1.83-alpine AS builder
WORKDIR /app WORKDIR /app

View file

@ -91,7 +91,7 @@ If the API is unreachable, metrics are stored locally for up to 24 hours. When c
### Prerequisites ### Prerequisites
- Rust 1.82 or later (required for Cargo.lock v4) - Rust 1.83 or later
- SQLite development libraries - SQLite development libraries
### Build ### Build