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

pub-cache-key #344

Closed
altanodm opened this issue Jan 14, 2025 · 3 comments
Closed

pub-cache-key #344

altanodm opened this issue Jan 14, 2025 · 3 comments

Comments

@altanodm
Copy link

Hello.

i want to use static pub-cache-key. But current action is [${{ }}](key: ${{ steps.flutter-action.outputs.PUB-CACHE-KEY }}-${{ hashFiles('**/pubspec.lock') }}).

Please change this cache key

@subosito
Copy link
Owner

Hi @altanodm

You can always override the options:

  - name: Set up Flutter
    uses: subosito/flutter-action@v2
    with:
      channel: stable
      cache: true
      pub-cache-key: "any-custom-key"

@altanodm
Copy link
Author

@subosito i saw action code and find this
${{ steps.flutter-action.outputs.PUB-CACHE-KEY }}-${{ hashFiles('**/pubspec.lock') }}

this is added hashFiles('**/pubspec.lock')

@subosito
Copy link
Owner

I see @altanodm

Hi @bartekpacia, let's see how we can help with this request. Respect the static key supplied, with no enforcement of using lock hash.

@altanodm altanodm closed this as completed Feb 7, 2025
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

No branches or pull requests

2 participants