File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -20,5 +20,16 @@ DEFAULT_PACKAGE_GIT_URL="https://github.com/delphix/delphix-rust.git"
2020
2121function build() {
2222 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+
2334 logmust dpkg_buildpackage_default
2435}
You can’t perform that action at this time.
0 commit comments