Skip to content

Commit

Permalink
add ca-certificates-bundle to cargo/build pipeline
Browse files Browse the repository at this point in the history
similar to our go/build pipeline, this commit adds
ca-certificates-bundle to cargo/build pipeline.

this is required because sometimes cargo cannot connect to github.com
directly. In cases where cargo cannot connect to github.com, we get the
following error message:

Stderr: fatal: unable to access
'https://github.com/the-mikedavis/tree-sitter-git-commit/': Failed to
connect to github.com port 443 after 131793 ms: Could not connect to
server

this is happening because we don't have ca-certificates-bundle at
build-time. Adding ca-certificates-bundle fixes the same.

Signed-off-by: kranurag7 <[email protected]>
  • Loading branch information
kranurag7 committed Jan 5, 2025
1 parent fe10319 commit b263efb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/build/pipelines/cargo/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Compile an auditable rust binary with Cargo
needs:
packages:
- build-base
- ca-certificates-bundle
- busybox
- cargo-auditable
- rust
Expand Down

0 comments on commit b263efb

Please sign in to comment.