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: specify pub cache path #280

Merged
merged 1 commit into from
Mar 20, 2024
Merged

fix: specify pub cache path #280

merged 1 commit into from
Mar 20, 2024

Conversation

richardshiue
Copy link
Contributor

@richardshiue richardshiue commented Mar 13, 2024

Currently, specifying a pub-cache-path like in the README doesn't do anything. This PR fixes this by adding the input. I've set up the priority like this:

  1. If the environmental variable PUB_CACHE is specified before using the action, continue using it.
  2. If PUB_CACHE_PATH is specified and is not the default value, then use it.
  3. Otherwise, use the defaults set by Dart as per https://dart.dev/tools/pub/environment-variables

In every case, the value will be re-exported as the environment variable by the name of PUB_CACHE, written to the action's output in the variable PUB-CACHE-PATH, and its bin sub-directory appended to PATH

resolves #278
resolves #277

@subosito
Copy link
Owner

awesome, thanks @richardshiue 👍

@subosito subosito merged commit 1c5eb12 into subosito:main Mar 20, 2024
15 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
2 participants