Commit Graph

397 Commits (1bc650b06c2f41645e389a1ef9c438dce9a1e338)
 

Author SHA1 Message Date
Vipul 3bb5ffcc9c
Merge pull request from tgrall/issue-687
Document the fact that this action is not supported on GitHub Enterprise Server
Vipul e6890046a6
Update README.md
Co-authored-by: Brian Cristante <33549821+brcrista@users.noreply.github.com>
Vipul 62fa565f30
Merge pull request from actions/bishal-pdMSFT-patch-1
Add actions-cache team in CODEOWNERS
Bishal Prasad e882008267
Update CODEOWNERS
Bishal Prasad 8e0501dcaf
Add actions-cache team in CODEOWNERS
Tugdual Grall a3b6799c91 update readme for issue
Aparna Ravindra bd49291365
Update README.md - 10GB support
Aparna Ravindra 937d244753
bumping up action version to 2.1.7 ()
Aparna Ravindra eb0698d1c5
Bumping up @actions/cache version to 1.0.8 ()
* bumping up @actions/cache version to 1.0.8
* Remove ubuntu-16.04
Manuel Roth 67b6d52d50
(R renv) Remove unused renv-cache-path variable ()
Manuel Roth 92f67a4829
(R renv) Fix Renv package cache location in examples ()
* (R renv) Fix Renv package cache location in examples

* (R env) Update getting Renv package cache location

* (R env) Set renv package cache location using RENV_PATHS_ROOT environment variable
Peter Mescalchin 447f0fd1d3 Chomp some markdown whitespace
Peter Mescalchin 47e8bd685f Small fix to `README.md` examples link
Peter Mescalchin 795a8f09a9 Fixed Windows Golang cache paths in example
Brian Cristante 6bbe742add
Use existing check-dist implementation ()
Brian Cristante c9db520cf3
Create check-dist.yml ()
* Add check-dist.yml

* Fix triggers in licensed.yml

* fix workflow for this repo
dependabot[bot] 10906ba9cd
Bump ws from 5.2.2 to 5.2.3 ()
Bumps [ws](https://github.com/websockets/ws) from 5.2.2 to 5.2.3.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/5.2.2...5.2.3)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Vít Stanislav 2ebdcff279
Add "see more" link to GHE-not-supported warning ()
* Add "see more" link to GHE-not-supported warning

I lived for several months thinking that support for caching action on GHE is just a matter of time, because it's such an important thing to have. Only today, I discovered that originally it was not planned at all. And that people already created some workarounds. So I hope that linking the issue from the warning message will save other people from what happened to me :-)

* Update new GHE-not-supported message in tests

* Update generated dist files
andrewdotn 5807af2642
Fix bugs in example of how to use with pipenv ()
* Fix bugs in example of how to use with pipenv

The current example of how to use `@actions/cache` with pipenv has two
problems:

 1. The cached virtualenv that pipenv creates has `bin/python` as a symlink
    into paths like `/opt/hostedtoolcache/Python/3.7.11` that explicitly
    include the patch version of python. When the cache is restored onto a
    machine running a slightly different version of python, e.g., when
    GitHub upgrades its runners from python 3.7.10 to 3.7.11, then any
    attempt to run python in the workflow mysteriously fails with errors
    like `Failed to load paths: /bin/sh: 1: /home/runner/.local/share/virtualenvs/myrepo-sOIMCiTO/bin/python: not found`.

    Therefore the patch version of python should be included in the cache
    key.

 2. `pipenv --install` has the unfortunate behaviour of not cleaning out
    any pre-existing packages. That is, if the `Pipfile` first contains
    dependencies on `foo` and `bar`, and then you remove `bar` from the
    `Pipfile` and run `pipenv install` again, `bar` is still included in
    the virtualenv.

    This can cause false-positive test failures: when a dependency is
    removed from the `Pipfile` but there is still code that relies on the
    removed dependency, tests can still pass if the dependency comes from
    the cache based on a previous revision of `Pipfile.lock`.

    Therefore `restore-keys` should not be set.

This PR attempts to address both of these issues.

* Explain why setup-python is included in example
Peter Mescalchin 0638051e9a
Golang example tweak - add `go-build` path - rebuild page TOC ()
David Hadka c64c572235
Catch and log unhandled exceptions stemming from closed file descriptor ()
Alex Tokarev cc2d767a72
Update Rust directories recommended for caching ()
This commit applies the suggestion from The Cargo Book:
https://doc.rust-lang.org/cargo/guide/cargo-home.html#caching-the-cargo-home-in-ci
Daniel Kuschny 2fa955d825
Update examples.md ()
Extend gradle notes.
Yuichi Yogo 4762de4681 simplify path in lerna example
kalin 3a696372f2
elixir typo - stray parenthesis ()
Wojtek Mach 366e5ba022
Update cache key for Elixir ()
Yuichi Yogo 12ed05f49a Fix typo of cache path in Lerna example
David Hadka 8d3f2fc3ce
Update dependencies ()
David Hadka 1a9e2138d9
Update cache module to v1.0.7 ()
Jonathan Clem 981fa981ed
Merge pull request from ericmj/patch-1
Also cache _build for Elixir
Pradyun Gedam 4498c5b4d8
Drop the example based on using pip's internals ()
pip's documentation explicitly states to not use `import pip`:

> While it is implemented in Python, and so is available from your Python code via
> `import pip`, you must not use pip’s internal APIs in this way.

This example is in direct contradiction with the documentation's guidance and, thus, has
been removed.
Albert Still 3767bf0386 Improve restore-key documentation
Robert Stoll 4134e6de47
It is not recommended to cache node_modules ()
According to the docs of this repo, so the example should not show it
Jason Axelson 2086306d9c Make it more obvious that the cache call does double duty
Yaroslav Dynnikov 26968a09c0
Make save/restore logs akin ()
- Print primary key when saving cache
Konrad Pabjan aeaf731ae2
Use @actions/cache version 1.0.6 ()
* Use @actions/cache version 1.0.6

* Update cache.dep.yml

* Update all files in .licenses
Konrad Pabjan 56a8a2f775
Merge pull request from eregon/recommend-setup-ruby-bundler-cache
Recommend ruby/setup-ruby's bundler-cache: true option
Benoit Daloze 1bfe3accb3 Recommend ruby/setup-ruby's bundler-cache: true option
Manually caching gems has many issues:
* Not working if there is no Gemfile.lock but only a Gemfile
* Not having the OS version in the key, which might cause binary incompatibility with system libraries of different ABI version.
* Not taking the Ruby version in account.
* Not taking the Ruby ABI version of development builds into accounts, which cannot be done with a key, but needs the commit hash.
* Using restore-keys would grow the cache over time and have extra gems in the cache.
* Those reasons are summarized in https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby#caching-bundle-install-manually
Konrad Pabjan 354332455a
Merge pull request from DanielHabenicht/patch-1
Update examples.md for NPM
Konrad Pabjan 3303695afa
Merge pull request from odin-delrio/patch-1
Improved gradle cache key calculation example
Odín del Río e64ab303d1
Improved gradle cache key calculation example
Konrad Pabjan 26c48dce83
Merge pull request from actions/cache-matrix-example
Added a cache example when using matrix
Chris Patterson 72f66cfa6d
Added a cache example when using matrix
Leandro Ostera 009fe4e01c
Add sample cache for Erlang with Rebar3
Konrad Pabjan 9f3a4d3e65
Merge pull request from guilleijo/pipenv-example
Add example for python pipenv
Aiqiao Yan 7b630ee04f
Merge pull request from actions/aiqiaoy/windows-cache-path
Use @actions/cache 1.0.5
Aiqiao Yan d2583f08bc Run licenses cache
Aiqiao Yan 752e778edb Use @actions/cache 1.0.5
Josh Gross a3047dcdce
Fix CODEOWNER team name ()
Konrad Pabjan 9c77c9dbfc
Merge pull request from brcrista/patch-1
Add CODEOWNERS file