Skip to content

Commit 4cc2acb

Browse files
committed
fix(ping/rust): Use refs/heads/master and not branch and master
Follows suggestion in libp2p#79 (comment). Follow-up to libp2p#79 and libp2p#80.
1 parent 31a1288 commit 4cc2acb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ping/_compositions/rust-cross-versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
[groups.build_config.build_args]
2727
BINARY_NAME = '{{ .BinaryName }}'
28-
GIT_REF = "master"
28+
GIT_REF = "refs/heads/master"
2929
{{ end }}
3030

3131
{{ if $.Env.GitReference }}

ping/rust/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ARG GIT_TARGET=""
1616
RUN if [ ! -z "${GIT_TARGET}" ]; then sed -i "s,^git.*,git = \"https://${GIT_TARGET}\"," ./plan/Cargo.toml; fi
1717

1818
ARG GIT_REF=""
19-
RUN if [ "master" = "${GIT_REF}" ]; then sed -i "s/^rev.*/branch= \"master\"/" ./plan/Cargo.toml; elif [ ! -z "${GIT_REF}" ]; then sed -i "s/^rev.*/rev = \"${GIT_REF}\"/" ./plan/Cargo.toml; fi
19+
RUN if [ ! -z "${GIT_REF}" ]; then sed -i "s/^rev.*/rev = \"${GIT_REF}\"/" ./plan/Cargo.toml; fi
2020

2121
COPY ./plan/${PLAN_PATH}/src/lib.rs ./plan/src/lib.rs
2222
COPY ./plan/${PLAN_PATH}/src/bin/ ./plan/src/bin/

0 commit comments

Comments
 (0)