Skip to content

Conversation

seemethere
Copy link
Member

Adds set -x for all installation commands in install_requirements.sh so that users can see what's actually being installed and can help debug when they run into any issues.

NOTE: This doesn't turn it on for all of the script (since that'd be overbearing) but rather turns it on specifically when installing things.

This also adds "set -eou pipefail" to the top of the script which is a recommended paradigm for all bash scripts since it adds things like error on exit, error on undefined variable, and propagation of errors on pipe failure.

https://explainshell.com/explain?cmd=set+-euo+pipefail

Adds set -x for all installation commands in install_requirements.sh so
that users can see what's actually being installed and can help debug
when they run into any issues.

NOTE: This doesn't turn it on for all of the script (since that'd be
overbearing) but rather turns it on specifically when installing things.

This also adds "set -eou pipefail" to the top of the script which is a
recommended paradigm for all bash scripts since it adds things like
error on exit, error on undefined variable, and propagation of errors on
pipe failure.

https://explainshell.com/explain?cmd=set+-euo+pipefail

Signed-off-by: Eli Uriegas <eliuriegas@meta.com>
Copy link

pytorch-bot bot commented Aug 1, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/torchchat/993

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit f6a0049 with merge base 35db038 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Aug 1, 2024
@seemethere seemethere requested review from malfet and iseeyuan August 1, 2024 18:04
Signed-off-by: Eli Uriegas <eliuriegas@meta.com>
Signed-off-by: Eli Uriegas <eliuriegas@meta.com>
@seemethere seemethere merged commit 9a13915 into main Aug 2, 2024
51 checks passed
@seemethere seemethere deleted the seemethere/show_install_commands branch August 2, 2024 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants