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 global not working without explicit executable path #6138

Merged

Conversation

sargunv
Copy link
Contributor

@sargunv sargunv commented Mar 3, 2023

SUMMARY

Fixes #6132.

PR #5829 added a call to yarn global dir to select the correct global directory, but this ran before the default value of the executable param was set from the PATH.

This PR moves that logic out of the Yarn class initializer so the executable is identified just before it's needed.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

yarn

ADDITIONAL INFORMATION

See #6132 for repro.

(Also cc @JohnDaly as this probably affects y'all)

@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added bug This issue/PR relates to a bug language module module packaging plugins plugin (any type) labels Mar 3, 2023
@ansibullbot ansibullbot added integration tests/integration tests tests labels Mar 3, 2023
@sargunv sargunv force-pushed the sv/fix-yarn-regression branch from 0b90b06 to e1ea7ca Compare March 3, 2023 23:38
@ansibullbot ansibullbot added the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR label Mar 3, 2023
@sargunv sargunv force-pushed the sv/fix-yarn-regression branch from e1ea7ca to a7ae59d Compare March 3, 2023 23:51
@sargunv
Copy link
Contributor Author

sargunv commented Mar 3, 2023

Test failure looks like a timeout in an unrelated test; re-running by amending commit timestamp and force pushing

@ansibullbot ansibullbot removed the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR label Mar 4, 2023
@felixfontein felixfontein added check-before-release PR will be looked at again shortly before release and merged if possible. backport-6 labels Mar 4, 2023
@felixfontein felixfontein merged commit 3d67f51 into ansible-collections:main Mar 4, 2023
@patchback
Copy link

patchback bot commented Mar 4, 2023

Backport to stable-6: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-6/3d67f51824c65035083e995206738166bb3a0de0/pr-6138

Backported as #6141

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

@felixfontein
Copy link
Collaborator

@sargunv thanks for fixing this!

patchback bot pushed a commit that referenced this pull request Mar 4, 2023
* Fix Yarn global not working without explicit executable path

* changelog fragment

* fix formatting and add test

* oops

(cherry picked from commit 3d67f51)
felixfontein pushed a commit that referenced this pull request Mar 4, 2023
…thout explicit executable path (#6141)

Fix Yarn global not working without explicit executable path (#6138)

* Fix Yarn global not working without explicit executable path

* changelog fragment

* fix formatting and add test

* oops

(cherry picked from commit 3d67f51)

Co-authored-by: Sargun Vohra <sargun.vohra@gmail.com>
@sargunv sargunv deleted the sv/fix-yarn-regression branch March 5, 2023 06:44
@felixfontein felixfontein removed the check-before-release PR will be looked at again shortly before release and merged if possible. label Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug integration tests/integration language module module packaging plugins plugin (any type) tests tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

yarn: #5829 causes "global dir" and "global: GTAGS not found." error
3 participants