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

fix: yarn berry detection in case working directory is changed #1143

Merged
merged 3 commits into from
May 12, 2024

Conversation

holomekc
Copy link
Contributor

Summary
In case the workingDirectory option is used the detection of yarn berry does not work properly:
image

To fix that the workingDirectory needs to be included for the .yarnrc.yml file detection

As a workaround it is possible to add an empty .yarnrc.yml file into the module root directory.
image

Furthermore, I forwarded the is berry check to the runner, so that additional arguments are not set, which are not supported by yarn berry.

Tests and Documentation
I updated the workflows, because they complained because of outdated and not supported node versions and updated the java version, because the mac os run complained that Java 8 is not supported anymore.

Furthermore, I added a test for yarn berry.

Furthermore, prevent errors in case of berry usage
and attempt to add arguments, which are not supported
by berry.
@eirslett eirslett self-requested a review May 12, 2024 21:55
Java 11 (because Java 8 causes issues on GitHub Actions)
@eirslett
Copy link
Owner

Thanks a lot!

@eirslett eirslett merged commit ad17068 into eirslett:master May 12, 2024
3 checks passed
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.

2 participants