Skip to content
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

fix: ignore cache for "apt update" #364

Merged
merged 1 commit into from
Oct 10, 2023

Conversation

cpuguy83
Copy link
Contributor

@cpuguy83 cpuguy83 commented Oct 10, 2023

"apt update" should never be cached.
This also shouldn't break caching for anything run after it unless the
rootfs changed (ie. apt cache was actually updated).

Copy link
Member

@sozercan sozercan left a comment

Choose a reason for hiding this comment

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

Thank you! LGTM

@sozercan sozercan changed the title apt: ignore cache for "apt update" fix (apt): ignore cache for "apt update" Oct 10, 2023
@sozercan sozercan changed the title fix (apt): ignore cache for "apt update" fix: ignore cache for "apt update" Oct 10, 2023
@codecov
Copy link

codecov bot commented Oct 10, 2023

Codecov Report

Attention: 15 lines in your changes are missing coverage. Please review.

Comparison is base (b840d42) 32.54% compared to head (efe84ba) 32.29%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #364      +/-   ##
==========================================
- Coverage   32.54%   32.29%   -0.25%     
==========================================
  Files          17       17              
  Lines        1555     1567      +12     
==========================================
  Hits          506      506              
- Misses       1020     1032      +12     
  Partials       29       29              
Files Coverage Δ
pkg/pkgmgr/dpkg.go 33.21% <0.00%> (-1.43%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

"apt update" should never be cached.
This also shouldn't break caching for anything run after it unless the
rootfs changed (ie. apt cache was actually updated).

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
@sozercan sozercan merged commit ed77375 into project-copacetic:main Oct 10, 2023
15 of 16 checks passed
@cpuguy83 cpuguy83 deleted the force_apt_update branch October 10, 2023 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants