Last active
February 6, 2019 00:33
-
-
Save LiberalArtist/2d9b55112cfedb16c745779e87856c9d to your computer and use it in GitHub Desktop.
Script to reproduce https://github.com/racket/racket/issues/2385
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script to reproduce https://github.com/racket/racket/issues/2385 | |
# Run this on a fresh install of Ubuntu, for example. | |
# This script uses the dummy Racket package issue-2385-demo, | |
# which is hosted in a private Bitbucket git repository. | |
# (The issue does not seem to affect public repositories.) | |
# Note: the credentials coded into this script give read-only | |
# access to a Bitbucket account created exclusively for the purpose | |
# of reproducing this issue. | |
# Install Racket: | |
export RACKET_DIR="$(pwd)/racket" | |
export RACKET_VERSION=7.2 | |
git clone https://github.com/greghendershott/travis-racket.git | |
cat travis-racket/install-racket.sh | bash # pipe to bash not sh! | |
export PATH="${RACKET_DIR}/bin:${PATH}" #install-racket.sh can't set for us | |
# Install the demo package, then try to update it: | |
CREDENTIALS=racket-issue-2385-demo:DvBX5adX7VQbWBgTXLhs | |
REPO=bitbucket.org/racket-issue-2385-demo/issue-2385-demo.git | |
CLONE_DIR="$(pwd)/issue-2385-demo" | |
raco pkg config -i --set default-scope installation | |
raco pkg config -i --set git-checkout-credentials $CREDENTIALS | |
git clone "https://${CREDENTIALS}@${REPO}" | |
cd $CLONE_DIR | |
raco pkg install -i --auto --name issue-2385-demo --clone $CLONE_DIR "https://${REPO}" | |
raco pkg update issue-2385-demo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment