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

chore: fix located_script_name test #18418

Merged
merged 6 commits into from
Mar 24, 2023

Conversation

dsherret
Copy link
Member

@dsherret dsherret commented Mar 24, 2023

Closes #18417

@dsherret dsherret marked this pull request as ready for review March 24, 2023 15:41
defaults: {
run: {
// GH actions doesn't use `set -e` by default unless you specify bash
shell: "bash",
Copy link
Member Author

Choose a reason for hiding this comment

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

It seems like a terrible decision/oversight that they didn't make this the default https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference

Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

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

LGTM

@dsherret dsherret enabled auto-merge (squash) March 24, 2023 15:59
Copy link
Contributor

@mmastrac mmastrac left a comment

Choose a reason for hiding this comment

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

Doh. How did that Windows build pass?

@dsherret dsherret merged commit de4667f into denoland:main Mar 24, 2023
@dsherret dsherret deleted the chore_fix_located_script_name branch March 24, 2023 16:17
@dsherret
Copy link
Member Author

Essentially GH actions does not have set -e (fail fast) as the default, which is a bad default IMO: https://stackoverflow.com/questions/62996357/stop-multiline-github-action-on-first-fail

It looks like there are a lot of resources online and other github repos that are doing this wrong too.

@dsherret
Copy link
Member Author

Someone followed up with me on the SO question and I realized this only occurs on Windows runners.

mmastrac pushed a commit that referenced this pull request Mar 31, 2023
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.

located_script_name is broken on main
3 participants