Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions packages/delphix-rust/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,16 @@ DEFAULT_PACKAGE_GIT_URL="https://github.com/delphix/delphix-rust.git"

function build() {
logmust mkdir -p "$WORKDIR/repo"

#
# Instead of relying on linux-pkg to assign a default version like 1.0.0, set the
# version of the `delphix-rust` package to the version of the `rustc` package.
# This is done to ensure that third-party packages that rely on specific versions
# of `rustc` can correctly compare the version of the `rustc` package supplied by
# `delphix-rust` with their requirement.
#
PACKAGE_VERSION="$(tr -d '\n' <"$WORKDIR/repo/RUSTC_VERSION")"
[[ -n "$PACKAGE_VERSION" ]] || die "Failed to retrieve package version"

logmust dpkg_buildpackage_default
}