Skip to content

Commit 3abe973

Browse files
author
Test User
committed
fix(polyrepo-publish): strip publish = [terraphim] restrictions
Some crates restrict publishing to the terraphim registry only via publish = ["terraphim"]. Strip this so crates.io publish works. Refs #2260
1 parent 2a709dc commit 3abe973

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

scripts/adf-setup/polyrepo-publish/polyrepo-publish.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,11 @@ step_rewrite_cargo() {
147147
if grep -q '\[registries\.terraphim\]' "$f" 2>/dev/null; then
148148
sed -i '/\[registries\.terraphim\]/,/^[[:space:]]*$/{ d; }' "$f"
149149
fi
150+
# Strip publish restrictions to terraphim registry only
151+
if grep -q 'publish = \["terraphim"\]' "$f" 2>/dev/null; then
152+
log " Stripping publish restriction from $f"
153+
sed -i 's/publish = \["terraphim"\]//g' "$f"
154+
fi
150155
done
151156

152157
if [ -f '.cargo/config.toml' ]; then

0 commit comments

Comments
 (0)