Skip to content

Commit

Permalink
Merge pull request #894 from lsm5/rpm-fix
Browse files Browse the repository at this point in the history
RPM: update .cargo/config before building
  • Loading branch information
openshift-merge-bot[bot] authored Jan 24, 2024
2 parents 8669c5b + f20eeeb commit 1fcf390
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions DISTRO_PACKAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ And then create a cargo config file to point it to the vendor dir.
tar xvf %{SOURCE}
mkdir -p .cargo
cat >.cargo/config << EOF
[source."git+https://github.com/namib-project/nftables-rs.git?rev=1b0c60b"]
git = "https://github.com/namib-project/nftables-rs.git"
rev = "1b0c60b"
replace-with = "vendored-sources"
[source.crates-io]
replace-with = "vendored-sources"
Expand Down
5 changes: 5 additions & 0 deletions rpm/netavark.spec
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ tar fx %{SOURCE1}
mkdir -p .cargo

cat >.cargo/config << EOF
[source."git+https://github.com/namib-project/nftables-rs.git?rev=1b0c60b"]
git = "https://github.com/namib-project/nftables-rs.git"
rev = "1b0c60b"
replace-with = "vendored-sources"

[source.crates-io]
replace-with = "vendored-sources"

Expand Down

0 comments on commit 1fcf390

Please sign in to comment.