Skip to content

fix: use hash instead of url for primary cache key#102

Merged
xhyrom merged 5 commits into
devfrom
unknown repository
Oct 4, 2024
Merged

fix: use hash instead of url for primary cache key#102
xhyrom merged 5 commits into
devfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Sep 29, 2024

its not working when cache key is URL (because of url unsafe characters or smth i think), so i suggest to hash download url and use it as cache key

fixes #101

@xhyrom xhyrom changed the title fix: cache in gitea/forgejo actions (closes #101) fix: cache in gitea/forgejo actions Sep 29, 2024
@autofix-ci
Copy link
Copy Markdown
Contributor

autofix-ci Bot commented Sep 29, 2024

Hi! I'm autofix logoautofix.ci, a bot that automatically fixes trivial issues such as code formatting in pull requests.

I would like to apply some automated changes to this pull request, but it looks like I don't have the necessary permissions to do so. To get this pull request into a mergeable state, please do one of the following two things:

  1. Allow edits by maintainers for your pull request, and then re-trigger CI (for example by pushing a new commit).
  2. Manually fix the issues identified for your pull request (see the GitHub Actions output for details on what I would like to change).

@xhyrom xhyrom changed the title fix: cache in gitea/forgejo actions fix: use hash instead of url for primary cache key Sep 29, 2024
Copy link
Copy Markdown
Collaborator

@xhyrom xhyrom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

follow autofix

@ghost ghost requested a review from xhyrom September 29, 2024 19:56
@ghost
Copy link
Copy Markdown
Author

ghost commented Oct 4, 2024

@xhyrom ?

Copy link
Copy Markdown
Collaborator

@xhyrom xhyrom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM; I forgot sorry 😅

@ghost
Copy link
Copy Markdown
Author

ghost commented Oct 4, 2024

i cant allow edits from maintainers because its cross-org fork (https://github.com/orgs/community/discussions/5634)
but i ran format and build scripts, so there cant be a problem here?

@xhyrom xhyrom changed the base branch from main to dev October 4, 2024 20:28
@xhyrom
Copy link
Copy Markdown
Collaborator

xhyrom commented Oct 4, 2024

I'll move it to the dev branch and then create PR from dev -> main. Thanks!

@xhyrom xhyrom merged commit e44c52a into oven-sh:dev Oct 4, 2024
xhyrom added a commit that referenced this pull request Oct 8, 2024
* fix: use hash instead of url for primary cache key (#102)

* Update cache-save.ts

* Update action.ts

* Update cache-save.ts

* build

* format

* [autofix.ci] apply automated fixes

---------

Co-authored-by: Daniil Zotov <142039751+zoto-ff@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
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.

cache is not working in gitea/forgejo

1 participant