Skip to content

Commit 9108ca5

Browse files
authored
Bump the rust version and sync with the test runner; pin image hashes (#8)
1 parent 1baf388 commit 9108ca5

4 files changed

Lines changed: 8 additions & 6 deletions

File tree

Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
FROM rust:1.87.0-alpine3.20 AS builder
1+
# Everything from here until WORKDIR should be kept in sync with the test runner.
2+
FROM rust:1.95.0-alpine3.23@sha256:606fd313a0f49743ee2a7bd49a0914bab7deedb12791f3a846a34a4711db7ed2 AS builder
23

34
RUN apk add --no-cache linux-headers make musl-dev
45

5-
RUN cargo install --git https://github.com/uiua-lang/uiua --rev aa6310c uiua
6+
RUN cargo install uiua@0.18.1
67

7-
FROM alpine:3.20
8+
FROM alpine:3.23.4@sha256:5b10f432ef3da1b8d4c7eb6c487f2f5a8f096bc91145e68878dd4a5019afde11
89

910
RUN apk add --no-cache jq
1011

1112
COPY --from=builder /usr/local/cargo/bin/uiua /usr/local/bin
13+
# Everything until here should be kept in sync with the test runner.
1214

1315
WORKDIR /opt/analyzer
1416
COPY . .

bin/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ analyze_files() {
2525
TEMP1=$(mktemp)
2626
for file in "$1"/*.ua; do
2727
[ -e "$file" ] || continue
28-
uiua run "$file" >> "$TEMP1"
28+
uiua run --no-color "$file" >> "$TEMP1" 2>&1
2929
done
3030

3131
RESULT=$(cat "$TEMP1")

tests/style-issue/expected_analysis.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"comment": "uiua.general.generic_message",
55
"params": {
6-
"comment": "Style: Prefer `⟜` over `⊃∘` for clarity\n Image ← ⊞+.÷⊃∘⇡100"
6+
"comment": "Style: Prefer `⟜` over `⊃∘` for clarity\n Image ← ⊞+⟜∘÷⊃∘⇡100"
77
},
88
"type": "informative"
99
}

tests/style-issue/style-issue.ua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Image ← ⊞+.÷⊃∘⇡100
1+
Image ← ⊞+⟜∘÷⊃∘⇡100

0 commit comments

Comments
 (0)