mirror of
https://github.com/astral-sh/ty.git
synced 2026-05-06 08:56:48 -04:00
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:
@@ -30,6 +30,7 @@ RUN rustup target add $(cat rust_target.txt)
|
||||
COPY ruff/crates crates
|
||||
COPY ruff/Cargo.toml Cargo.toml
|
||||
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 cp target/$(cat rust_target.txt)/release/ty /ty
|
||||
# TODO: Optimize binary size, with a version that also works when cross compiling
|
||||
|
||||
Reference in New Issue
Block a user