Skip to content

Commit

Permalink
task: Add cargo-sort and git (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
timleslie authored May 23, 2024
1 parent f48de14 commit adbba91
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ a new version number. Fill in an appropriate changelog entry in this file to
get CI passing and enable the changes to land on `main`.
``

## 1.77-1.1

- Made `cargo-sort` available
- Added `git` to the base image

## 1.77-1.0

- Updated Rust version to `1.77.1`
Expand Down
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# pattern described at [1] for efficiently building the images.
#
# [1] https://www.docker.com/blog/faster-multi-platform-builds-dockerfile-cross-compilation-guide/
#
#
########

####
Expand Down Expand Up @@ -101,7 +101,7 @@ RUN ln -s /usr/bin/aarch64-linux-gnu-ar ${MUSL_PREFIX}/bin/aarch64-linux-musl-ar
# Build OpenSSL with our musl toolchain.
#
# OpenSSL is unfortunately a common dependency in the Rust ecosystem, and it's fiddly to use
# with cross-compiled static targets, so we provide it as a pre-built dependency. As with musl itself,
# with cross-compiled static targets, so we provide it as a pre-built dependency. As with musl itself,
# for simplicity and consistency, we ship a build for both of the target architectures.

ENV SSL_VER="3.2.1"
Expand Down Expand Up @@ -209,6 +209,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
jq \
curl \
make \
git \
ca-certificates \
gcc-aarch64-linux-gnu \
linux-libc-dev-amd64-cross \
Expand Down Expand Up @@ -254,6 +255,7 @@ COPY --from=builder \
${CARGO_HOME}/bin/cargo-make \
${CARGO_HOME}/bin/cargo-release \
${CARGO_HOME}/bin/cargo-machete \
${CARGO_HOME}/bin/cargo-sort \
${CARGO_HOME}/bin/

# Add additional not-natively-compiled cargo tooling.
Expand Down

0 comments on commit adbba91

Please sign in to comment.