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"
20
20
21
21
function build() {
22
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
+
23
34
logmust dpkg_buildpackage_default
24
35
}
You can’t perform that action at this time.
0 commit comments