We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 811ec34 commit 7b29731Copy full SHA for 7b29731
1 file changed
packages/delphix-rust/config.sh
@@ -20,5 +20,16 @@ DEFAULT_PACKAGE_GIT_URL="https://github.com/delphix/delphix-rust.git"
20
21
function build() {
22
logmust mkdir -p "$WORKDIR/repo"
23
+
24
+ #
25
+ # Instead of relying on linux-pkg to assign a default version like 1.0.0, set the
26
+ # version of the `delphix-rust` package to the version of the `rustc` package.
27
+ # This is done to ensure that third-party packages that rely on specific versions
28
+ # of `rustc` can correctly compare the version of the `rustc` package supplied by
29
+ # `delphix-rust` with their requirement.
30
31
+ PACKAGE_VERSION="$(tr -d '\n' <"$WORKDIR/repo/RUSTC_VERSION")"
32
+ [[ -n "$PACKAGE_VERSION" ]] || die "Failed to retrieve package version"
33
34
logmust dpkg_buildpackage_default
35
}
0 commit comments