Skip to content

Commit 9e7aa42

Browse files
authored
Fix a bug in setup_dev_from_wheel script (#2217)
**Context:** `setup_dev_from_wheel` script aims to find the correct commit that corresponds to the latest PyPi release, however it checks out the parent commit of the nightly version bump commit which would have a lower version and hence fails to find the correct commit. **Description of the Change:** changes the script to checkout the correct commit. **Benefits:** **Possible Drawbacks:** **Related GitHub Issues:** [sc-104391]
1 parent 5e3813a commit 9e7aa42

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

setup_dev_from_wheel.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ checkout_nightly_build(){
5353

5454
# Search for the commit corresponding to latest available Wheel at TestPyPI
5555
git log --grep="bump nightly version" | grep "commit" | cut -d " " -f 2 | while read -r NIGHTLY_BUMP; do
56-
# The commit right before the nightly bump must have the same version as the Wheel
57-
git checkout $NIGHTLY_BUMP^1;
56+
git checkout $NIGHTLY_BUMP;
5857
export DIFF=$(diff $CATALYST_WHEEL/_version.py $CATALYST_FRONTEND_SRC/_version.py)
5958
if [ -z "${DIFF}" ]; then
6059
export CATALYST_WHEEL_COMMIT=$(git log -1 --format="%h")

0 commit comments

Comments
 (0)