Commit Graph
34 Commits
Author SHA1 Message Date
Christoph Reiter bb9f0aa1c0 Don't set the MSYS env var globally (#1329)
85bb581273 introduced a call to exportVariable() to export the MSYS env
var, which configures the symlink strategy for MSYS2/cygwin binaries it calls.

By setting the env var globally, this also changes the behaviour of other MSYS2
using tools in a CI job, and also overrides MSYS configuration set by the user,
which I think was not intended.

To avoid this leakage set the MSYS env var only for the commands which
@actions/cache calls.

Fixes #1312
2023-02-08 10:58:25 +05:30
Sampark Sharma 85bb581273 Cache package release for compression change in windows with symlink fix (#1291)
* Cache package release for compression change in windows

This reverts commit d4fc1ac928.

* Add env variable to enable windows symlinks

* Add cross os opt-in functionality for cache on windows

* Fix test

* Address review comments

* Fix test

* Fix tests

* Fix tests

* Fix tests

* Address review comments

* Address review comments

* Fix tests

* Fix tests

* Add npm version

* Add release details
2023-01-04 12:16:25 +05:30
Sampark Sharma d4fc1ac928 Revert "Cache package release for compression change in windows" (#1289)
* Revert "Cache package release for compression change in windows (#1281)"

This reverts commit 6140e090c3.

* Update release version to patch
2022-12-27 16:00:28 +05:30
6140e090c3 Cache package release for compression change in windows (#1281)
* bsd + zstd fallback implementation

* bsd + zstd fallback implementation

* Fix tar operations

* Add -v option for testing

* Fix order of args for tar

* Add GNUtar as default on windows

* Fix test

* Fix tar tests

* Fix lint issues

* Fix windows gnutar test case

* Temporarily remove thhe condition that prevents zstd usage on windows unless with GNUtar

* Address some comments and correct compression commands

* Add windows bsdtar test

* Fix windows test

* Fix test

* Separate args

* Fix old tests

* Add new tests

* Fix tests

* Fix lint test

* Refactor code

* Address review comments

* Fix test

* Fix tar test

* Add await to async function calls

* Fix test

* Update for beta release

* Fix audit issues

* Add fallback to gzip compression if cache not found

* Fix test

* Add test

* Address review comments

* Revert Address review comments

* Release 3.1.0-beta.2 cache package

* Fix issues

* Reconfigure catch block

* Add debug logging for gzip fall back

* Fix test

* Add end to end test for cache using bsd on windows
and address review comments

* Fix test

* Fix test

* Fix tests

* Add better comments

* Update packages/cache/src/internal/cacheHttpClient.ts

Co-authored-by: Bishal Prasad <bishal-pdmsft@github.com>

* Address review comments

* Update for new beta cache package release

* Address bugbash issues

* Fix tests

* Release new actions/cache minor version

Co-authored-by: Lovepreet Singh <pdotl@github.com>
Co-authored-by: Bishal Prasad <bishal-pdmsft@github.com>
2022-12-22 20:47:35 +05:30
Sampark Sharma 4ade9d4c1a Revert "Add GNUtar as default in windows" 2022-11-17 12:26:27 +05:30
Sampark Sharma db0e76705d Address review comments 2022-11-15 10:18:46 +00:00
Sampark Sharma a4e0ab9aed Fix tests 2022-11-15 08:48:29 +00:00
Sampark Sharma cb8659f414 Address comments 2022-11-15 08:41:04 +00:00
Sampark Sharma 1c598e6f90 Fix tests 2022-11-14 10:25:17 +00:00
Sampark Sharma be8b56eaf5 Address review comments 2022-11-14 08:12:15 +00:00
Sampark Sharma 77aef0ed4c Fix tests 2022-11-10 15:50:06 +00:00
Sampark Sharma e8091e7b94 Fix GNUtar path 2022-11-08 08:29:31 +00:00
Sampark Sharma cc292001eb Fix tests 2022-11-08 06:43:28 +00:00
Sampark Sharma 802b275be8 Fix gnutar check on windows 2022-11-07 13:43:54 +00:00
Sampark Sharma 43d72f5923 Add gnuTar as default in windows 2022-11-07 13:39:07 +00:00
Lovepreet Singh 0c62886e6a Fix linting issues 2022-08-18 11:44:15 +00:00
Lovepreet Singh 8765fae9d1 Fix spread operator for getCompressionMethod 2022-08-18 11:22:13 +00:00
Lovepreet Singh 993972da73 Merge remote-tracking branch 'refs/remotes/origin/pdotl-zstd-win-patch' into pdotl-zstd-win-patch 2022-08-18 11:17:36 +00:00
Lovepreet Singh 09244d83b7 Common getCompressionMethod for listTar and extractTar 2022-08-18 11:01:22 +00:00
Lovepreet Singh 1e4d71c2ca Fix failing test cases on windows 2022-08-17 08:33:23 +00:00
Lovepreet Singh cd6fe2862c Fix linting 2022-08-17 07:47:49 +00:00
Lovepreet Singh 35960c5de6 Use zstd short flag version for win runners. Update comments to reflect the same. Fix --d to -d in comments. 2022-08-13 18:01:07 +00:00
Lovepreet Singh 662e7fc4f0 Move zstd from flags to equivalent aliases 2022-07-18 09:12:07 +00:00
Sankalp Kotewar 24cec71274 Reverted other package-lock.json 2022-06-06 08:03:56 +00:00
Sankalp Kotewar 0c96c069df Revert "Adding fix for tar exiting with code 1 issue"
This reverts commit ad2fd7b5e6.
2022-06-06 07:56:27 +00:00
Sankalp Kotewar ad2fd7b5e6 Adding fix for tar exiting with code 1 issue 2022-06-01 13:18:50 +00:00
David Hadka 43af7e1698 Fix permissions issues using gtar on mac 2021-04-09 13:38:55 -05:00
Benedek Kozma 8c920f7860 Use GNU tar on macOS if available (#701)
* use GNU tar on macOS

* remove unnecessary code

* formatting fix

* fix tests

* fix more tests

* typo fix

* fix test
2021-02-02 20:09:10 +01:00
Yaroslav Dynnikov 4a6443b8d2 Make caching more verbose
- Print cache size when saving cache similarly to restoring
- Print restore success similarly to saving
- Print cached file list if debug logging is enabled

See also: https://github.com/actions/cache/issues/471
2021-01-07 23:51:43 +03:00
Sora Morimoto 71ec744d46 Use posix archive format (#533)
* Use posix archive format

Signed-off-by: Sora Morimoto <sora@morimoto.io>

* Update package.json and RELEASES.md

Signed-off-by: Sora Morimoto <sora@morimoto.io>
2020-08-05 17:17:23 +02:00
Aiqiao Yan ae9b6ba171 React to feedback 2020-05-19 12:38:45 -04:00
Aiqiao Yan 3f105f84d2 Only use zstd on windows when gnu tar is installed, otherwise use gzip due to bug #301 2020-05-18 16:35:13 -04:00
Aiqiao Yan 800a3d0a98 Fix issue with using zstd long range mode on ubuntu-16.04 2020-05-18 16:33:15 -04:00
Aiqiao Yan ab4976ef10 Initial commit to create @actions/cache package 2020-05-12 12:02:18 -04:00