File tree Expand file tree Collapse file tree 2 files changed +10
-24
lines changed Expand file tree Collapse file tree 2 files changed +10
-24
lines changed Original file line number Diff line number Diff line change 2
2
#
3
3
# simple script to check that github team for publishing crates has been added
4
4
# for all of the crates.
5
- #
5
+ #
6
6
7
7
set -e
8
8
9
9
cd $( dirname ${BASH_SOURCE[0]} ) /../../
10
10
11
11
OWNER=github:azure:azure-sdk-publish-rust
12
+ SDK=$( cargo metadata --format-version=1 --no-deps | jq -r -c ' .packages | .[] | select(.publish == null) | .name' )
13
+ SERVICES=$( cd services; cargo metadata --format-version=1 --no-deps | jq -r -c ' .packages | .[] | select(.publish == null) | .name' )
12
14
13
- for i in sdk/* /Cargo.toml ; do
14
- (
15
- CRATE_DIR=$( dirname $i )
16
- cd ${CRATE_DIR}
17
- if ! grep -qi ' publish = false' Cargo.toml; then
18
- if ! cargo owner -q --list 2> /dev/null | grep -qi ${OWNER} ; then
19
- echo SDK publish team is missing on crates.io for $i
20
- echo " (cd ${CRATE_DIR} ; cargo owner --add ${OWNER} )"
21
- fi
22
- fi
23
- )
24
- done
25
-
26
- for i in services/svc/* /Cargo.toml services/mgmt/* /Cargo.toml; do
27
- (
28
- CRATE_DIR=$( dirname $i )
29
- cd ${CRATE_DIR}
30
- if ! cargo owner -q --list 2> /dev/null | grep -qi ${OWNER} ; then
31
- echo SDK publish team is missing on crates.io for $i
32
- echo " (cd ${CRATE_DIR} ; cargo owner --add ${OWNER} )"
33
- fi
34
- )
15
+ for i in ${SDK} ${SERVICES} ; do
16
+ if ! cargo owner -q --list $i 2> /dev/null | grep -qi ${OWNER} ; then
17
+ echo SDK publish team is missing on crates.io for $i
18
+ echo " cargo owner --add ${OWNER} $i "
19
+ fi
35
20
done
Original file line number Diff line number Diff line change 2
2
name = " mock_transport"
3
3
version = " 0.1.0"
4
4
edition = " 2021"
5
+ publish = false
5
6
6
7
[dependencies ]
7
8
azure_core = { path = " ../../../sdk/core" }
@@ -11,4 +12,4 @@ serde_json = "1.0"
11
12
url = " 2.2"
12
13
base64 = " 0.13"
13
14
bytes = " 1.0"
14
- async-trait = " 0.1"
15
+ async-trait = " 0.1"
You can’t perform that action at this time.
0 commit comments