1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-09-30 19:22:09 +00:00
forgejo-runner/act/artifactcache
Mathieu Fenniak a3aedba3f1
refactor: remove duplicate computeMac function (#936)
It was raised during embargo review of #925 that there are two implementations of `computeMac`; this PR fixes that.

As all the tests for `computeMac` were in the `artifactcache` package, it made more sense to keep the method there.  That required reversing the dependency `artifactcache->cacheproxy` package dependency -- it makes more sense to me for the proxy to depend on the cache, rather than vice-versa.

<!--start release-notes-assistant-->
<!--URL:https://code.forgejo.org/forgejo/runner-->
- other
  - [PR](https://code.forgejo.org/forgejo/runner/pulls/936): <!--number 936 --><!--line 0 --><!--description cmVmYWN0b3I6IHJlbW92ZSBkdXBsaWNhdGUgY29tcHV0ZU1hYyBmdW5jdGlvbg==-->refactor: remove duplicate computeMac function<!--description-->
<!--end release-notes-assistant-->

Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/936
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Co-authored-by: Mathieu Fenniak <mathieu@fenniak.net>
Co-committed-by: Mathieu Fenniak <mathieu@fenniak.net>
2025-09-05 06:01:49 +00:00
..
testdata/example Support cache (#1770) 2023-04-28 15:57:40 +00:00
doc.go Support cache (#1770) 2023-04-28 15:57:40 +00:00
handler.go refactor: remove duplicate computeMac function (#936) 2025-09-05 06:01:49 +00:00
handler_test.go refactor: remove duplicate computeMac function (#936) 2025-09-05 06:01:49 +00:00
mac.go refactor: remove duplicate computeMac function (#936) 2025-09-05 06:01:49 +00:00
mac_test.go refactor: remove duplicate computeMac function (#936) 2025-09-05 06:01:49 +00:00
model.go fix: PRs cache artifacts separate from other runs 2025-09-01 13:45:43 +02:00
storage.go chore: use the same .golangci.yml as the runner & gofumpt over gofmt (#206) 2025-07-28 12:26:41 +00:00