mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-18 16:31:32 -06:00
- Created new output files for OpenID build and deny logs. - Added JSON and text output for reqwest tree post native. - Implemented upgrade logs and error handling for build and deny processes. - Updated webauthn and webpki dependency trees in respective output files. - Addressed license rejection issues in upgrade process. - Included error logs for webauthn search and webpki tree post native.
17 lines
739 B
Bash
17 lines
739 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
cp -a /workspace /tmp/wrk_req
|
|
cd /tmp/wrk_req
|
|
|
|
# Replace rustls features to prefer native-tls in reqwest (simple approach editing Cargo.toml)
|
|
perl -0777 -pe 's/reqwest\s*=\s*"[^"]+"/reqwest = "0.12.24"/g' -i Cargo.toml || true
|
|
# Remove rustls-tls feature and add tls = "native-tls" where features are specified
|
|
perl -0777 -pe 's/rustls-tls/native-tls/g' -i Cargo.toml || true
|
|
|
|
# Attempt to update reqwest and run cargo-deny licenses in the copied workspace
|
|
/usr/local/cargo/bin/cargo update -p reqwest || true
|
|
/usr/local/cargo/bin/cargo deny --manifest-path Cargo.toml --format json check licenses > /tmp/deny_reqwest_native.json 2>/tmp/deny_reqwest_native.err || true
|
|
|
|
echo done > /tmp/req_exp.done
|