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 sveltekit respecting yarn env var #3226

Merged
merged 2 commits into from
Jun 7, 2024
Merged

fix sveltekit respecting yarn env var #3226

merged 2 commits into from
Jun 7, 2024

Conversation

AlexBocken
Copy link
Contributor

@AlexBocken AlexBocken commented Jun 7, 2024

With the replacement of Svelte with SvelteKit I've noticed how anki can no longer build successfully when using the env var YARN_BINARY.

Investigating a bit, I’ve noticed how in build/ninja_gen/src/node.rs, the function in question has ./yarn hardcoded in as opposed to reading in the env var if appropriate.

This PR reads-in the yarn variable for SveltekitBuild in the same manner as it already does for the other functions.

@dae
Copy link
Member

dae commented Jun 7, 2024

Thanks. I seem to recall there was a reason why it was changed, but since the build seems to work fine now without ./yarn, I'm not sure what the reason was.

@dae dae merged commit 4fb2efb into ankitects:main Jun 7, 2024
1 check 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