Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a bash/sh/zsh guard to avoid users running build-localy with them #2035

Merged
merged 8 commits into from
Aug 23, 2024

Conversation

hmaarrfk
Copy link
Contributor

I keep typing

bash build-\tab

which causes all kinds of problems. I think this would help me and likely others

Checklist

  • Added a news entry <--- Is this needed?
  • Regenerated schema JSON if schema altered (python conda_smithy/schema.py)

I keep typing

```
bash build-\tab
```

which causes all kinds of problems. I think this would help me and
likely others
@hmaarrfk hmaarrfk requested a review from a team as a code owner August 12, 2024 19:10
@@ -1,8 +1,10 @@
#!/usr/bin/env python3
#!/bin/sh
'''exec' "python3" "$0" "$@" #'''
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm this is even cooler.

My fear is that this encourages bad habits. but ok!

@hmaarrfk
Copy link
Contributor Author

Well CIs are green, so this is here if there is some enthusiasm around it.

@beckermr beckermr merged commit 2b90586 into conda-forge:main Aug 23, 2024
2 checks passed
@@ -1,8 +1,11 @@
#!/usr/bin/env python3
#!/bin/sh
"""exec' "python3" "$0" "$@" #""" # fmt: off # fmt: on
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This broken the script for those calling it with ./build-locally.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants