Fix ty version reporting in Docker distributions (#2702)

Closes #2698 

```
❯ docker run --rm ty-test version
ty 0.0.14
```
This commit is contained in:
Zanie Blue
2026-02-02 12:33:46 -06:00
committed by GitHub
parent 3f490fa9ad
commit deed12cf66
+1
View File
@@ -30,6 +30,7 @@ RUN rustup target add $(cat rust_target.txt)
COPY ruff/crates crates COPY ruff/crates crates
COPY ruff/Cargo.toml Cargo.toml COPY ruff/Cargo.toml Cargo.toml
COPY ruff/Cargo.lock Cargo.lock COPY ruff/Cargo.lock Cargo.lock
COPY dist-workspace.toml ../dist-workspace.toml
RUN cargo zigbuild --bin ty --target $(cat rust_target.txt) --release RUN cargo zigbuild --bin ty --target $(cat rust_target.txt) --release
RUN cp target/$(cat rust_target.txt)/release/ty /ty RUN cp target/$(cat rust_target.txt)/release/ty /ty
# TODO: Optimize binary size, with a version that also works when cross compiling # TODO: Optimize binary size, with a version that also works when cross compiling