-
Notifications
You must be signed in to change notification settings - Fork 59
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
Update package manager index before installing ccache #19
Conversation
This is to avoid the index being outdated and failing ccache installation. Relevant issues: actions/runner-images#1757 (comment) actions/runner-images#2924 From https://docs.github.com/en/actions/using-github-hosted-runners/customizing-github-hosted-runners: >Note: Always run sudo apt-get update before installing a package. In case the apt index is stale, this >command fetches and re-indexes any available packages, which helps prevent package installation failures.
OK, I just found #1 Another way to handle this is to add a specific note about requiring the package manager is updated before using this action, however I think it is quite unnatural that an action which will install a package won't ensure the package manager index is up to date before installation... |
Not running I agree that documenting this behavior would be nice. You could as well catch the potential error and print a meaningful message like: "did you run apt-get update / brew update before?" If you desperately need this behavior I am ok with adding a parameter |
Right, but a part of the README is misleading about it:
This implies the user should run this action right after checkout and before installing the dependencies.
I'm not particularly interested of adding an new option. You can also consider releasing version 2 of this action which will be a breaking change from v1 (accumulate with other breaking changes). |
Maybe on ubuntu. On homebrew it is updated yesterday: Homebrew/homebrew-core@d0a04a5 |
I don't read this, it only says it should it should be added after:
That's all, however I am currently not remembering the reason. I happily improve the docs, however I don't get the problem. It doesn't say anything else. The user feedback has been that most users run That's why I am not accepting this change if it changes the current default behavior.
For this change, I see no reason to change the default. I see quite some user base in public repositories and I imagine more in private repositories. I don't want to break existing workflows without a strong reason. The idea of a feature branch is a good one, however I wouldn't call it version 2 as long as it's experimental. |
Like how much? < 30 secs at most is considered too much? Anyway, thank you for your time. |
This is to avoid the index being outdated and failing ccache installation.
Relevant issues:
actions/runner-images#1757 (comment)
actions/runner-images#2924
From https://docs.github.com/en/actions/using-github-hosted-runners/customizing-github-hosted-runners: