Skip to content

Commit

Permalink
Merge pull request #177 from erikh/fix-vendored
Browse files Browse the repository at this point in the history
Fix use of vendored feature in openssl dependency
  • Loading branch information
erikh authored Mar 31, 2022
2 parents 688ebd4 + 588a871 commit 217569b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,12 @@ tracing = "0.1"
tracing-log = "0.1"
tracing-subscriber = "0.2"
hex = ">=0"
openssl = { version = ">= 0", features = [ "vendored" ] }
openssl = ">= 0"
async-trait = ">=0"

[features]
vendored-openssl = [ "openssl/vendored" ]

[dev-dependencies]
lazy_static = ">=0"

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN apk add openssl-dev
COPY . /zeronsd
WORKDIR /zeronsd

RUN OPENSSL_NO_VENDOR=1 cargo install --path .
RUN cargo install --release --path .

FROM alpine:latest

Expand Down
4 changes: 2 additions & 2 deletions cargo-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

if [ "${IS_LOCAL}" != 0 ]
then
cargo install --path .
cargo install --release --path .
else
cargo install --git https://github.com/zerotier/zeronsd \
cargo install --release --git https://github.com/zerotier/zeronsd \
$(if [ "${IS_TAG}" != "0" ]; then echo "--tag"; else echo "--branch"; fi) \
"${VERSION}"
fi

0 comments on commit 217569b

Please sign in to comment.