Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove --offline
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
  • Loading branch information
ggwpez committed Sep 26, 2022
commit af8065fe44ceb4e21ebbc5c02b7216adfb27d62b
4 changes: 2 additions & 2 deletions scripts/ci/gitlab/rust-features.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function check_does_not_imply() {

RET=0
# Check if the forbidden feature is enabled anywhere in the workspace.
cargo tree --no-default-features --locked --offline --workspace -e features --features "$ENABLED" | grep -q "feature \"$STAYS_DISABLED\"" || RET=$?
cargo tree --no-default-features --locked --workspace -e features --features "$ENABLED" | grep -q "feature \"$STAYS_DISABLED\"" || RET=$?
if [ $RET -ne 0 ]; then
echo "βœ… Feature '$ENABLED' does not imply '$STAYS_DISABLED' in the workspace"
return
Expand All @@ -79,7 +79,7 @@ function check_does_not_imply() {

for CRATE in $CRATES; do
RET=0
OUTPUT=$(cargo tree --no-default-features --locked --offline -e features --features $ENABLED -p $CRATE 2>&1 || true)
OUTPUT=$(cargo tree --no-default-features --locked -e features --features $ENABLED -p $CRATE 2>&1 || true)
IS_NOT_SUPPORTED=$(echo $OUTPUT | grep -q "not supported for packages in this workspace" || echo $?)

if [ $IS_NOT_SUPPORTED -eq 0 ]; then
Expand Down