Skip to content

ci: skip init steps when cache was restored via restore-keys#672

Merged
dimitris-m merged 1 commit into
mainfrom
dm/fix-cache-hit-guards
Apr 20, 2026
Merged

ci: skip init steps when cache was restored via restore-keys#672
dimitris-m merged 1 commit into
mainfrom
dm/fix-cache-hit-guards

Conversation

@dimitris-m
Copy link
Copy Markdown
Collaborator

Windows opam/OPAMROOT init steps and aarch64 SHOULD_INIT_OPAM guard were conditioned on cache-hit, which is false when a cache is restored via restore-keys. After PR #670 added restore-keys fallbacks, a fallback-restored _opam caused the init steps to run and fail with "switch already exists". Windows steps now guard on cache-matched-key == ''; aarch64 guards on [ -d _opam ] inside the shell, matching the x86 pattern.

@dimitris-m dimitris-m force-pushed the dm/fix-cache-hit-guards branch from c232f56 to b0108d4 Compare April 20, 2026 10:21
@dimitris-m dimitris-m merged commit 1bb7fc0 into main Apr 20, 2026
1 check passed
@dimitris-m dimitris-m deleted the dm/fix-cache-hit-guards branch April 20, 2026 10:21
@maciejpirog maciejpirog mentioned this pull request Apr 21, 2026
tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request May 7, 2026
This MR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [opengrep/opengrep](https://github.com/opengrep/opengrep) | minor | `v1.19.0` → `v1.20.0` |

MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot).

**Proposed changes to behavior should be submitted there as MRs.**

---

### Release Notes

<details>
<summary>opengrep/opengrep (opengrep/opengrep)</summary>

### [`v1.20.0`](https://github.com/opengrep/opengrep/releases/tag/v1.20.0): Opengrep 1.20.0

[Compare Source](opengrep/opengrep@v1.19.0...v1.20.0)

#### Improvements

- Elixir: Updates in patterns by [@&#8203;maciejpirog](https://github.com/maciejpirog) in [#&#8203;655](opengrep/opengrep#655)
- Elixir: Distinguish field access from zero-arity remote call by [@&#8203;dimitris-m](https://github.com/dimitris-m) in [#&#8203;659](opengrep/opengrep#659)
- Python: Preserve match/case guard and `as` bindings (PEP 634) by [@&#8203;dimitris-m](https://github.com/dimitris-m) in [#&#8203;679](opengrep/opengrep#679)
- Python: Parse PEP 634 match/case statements in the menhir parser by [@&#8203;raphaeldavidf](https://github.com/raphaeldavidf) in [#&#8203;665](opengrep/opengrep#665)
- Clojure: Support string-key map destructuring by [@&#8203;dimitris-m](https://github.com/dimitris-m) in [#&#8203;658](opengrep/opengrep#658)
- Fix lambda taint tracking in intrafile mode by [@&#8203;corneliuhoffman](https://github.com/corneliuhoffman) in [#&#8203;597](opengrep/opengrep#597)
- Unconditional taints in lambdas by [@&#8203;corneliuhoffman](https://github.com/corneliuhoffman) in [#&#8203;663](opengrep/opengrep#663)
- Make switch usable as expression in IL by [@&#8203;maciejpirog](https://github.com/maciejpirog) in [#&#8203;664](opengrep/opengrep#664)
- Exclude more synthetic identifiers from the PCRE prefilter by [@&#8203;dimitris-m](https://github.com/dimitris-m) in [#&#8203;673](opengrep/opengrep#673)
- Hide synthetic identifiers, add prefix-metavar matching, fix Go `chan` direction by [@&#8203;corneliuhoffman](https://github.com/corneliuhoffman) in [#&#8203;677](opengrep/opengrep#677)

#### Infrastructure

- CI: Set CLCACHE\_DIR for nuitka clcache on Windows by [@&#8203;dimitris-m](https://github.com/dimitris-m) in [#&#8203;680](opengrep/opengrep#680)
- CI: Skip init steps when cache was restored via restore-keys by [@&#8203;dimitris-m](https://github.com/dimitris-m) in [#&#8203;672](opengrep/opengrep#672)
- CI: Upgrade opam to 2.5.1, re-enable windows sig verification by [@&#8203;dimitris-m](https://github.com/dimitris-m) in [#&#8203;674](opengrep/opengrep#674)
- CI (Alpine): Add curl to apk install by [@&#8203;dimitris-m](https://github.com/dimitris-m) in [#&#8203;675](opengrep/opengrep#675)
- Chore: Remove .circleci, drop dead Makefile targets, align terminology by [@&#8203;dimitris-m](https://github.com/dimitris-m) in [#&#8203;676](opengrep/opengrep#676)
- Fix Windows install: Bundle charset\_normalizer, don't treat stderr as fatal by [@&#8203;dimitris-m](https://github.com/dimitris-m) in [#&#8203;662](opengrep/opengrep#662)
- Opam: Make cache version-invariant and pin memprof-limits via template by [@&#8203;dimitris-m](https://github.com/dimitris-m) in [#&#8203;670](opengrep/opengrep#670)

##### New Contributors

- [@&#8203;raphaeldavidf](https://github.com/raphaeldavidf) made their first contribution in [#&#8203;665](opengrep/opengrep#665)

**Full Changelog**: <opengrep/opengrep@v1.19.0...v1.20.0>

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this MR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xMzkuMSIsInVwZGF0ZWRJblZlciI6IjQzLjE0MC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJSZW5vdmF0ZSBCb3QiLCJhdXRvbWF0aW9uOmJvdC1hdXRob3JlZCIsImRlcGVuZGVuY3ktdHlwZTo6bWlub3IiXX0=-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant