Skip to content

fix(oci): keep absolute symlink targets in system package layers - #14968

Merged
jdx merged 2 commits into
mainfrom
claude/mise-discussion-thoughts-b008d6
Oct 25, 2026
Merged

jdx merged 2 commits into
mainfrom
claude/mise-discussion-thoughts-b008d6

Conversation

@jdx

@jdx jdx commented Oct 25, 2026 •

Copy link
Copy Markdown
Owner

https://entire.com/gh/jdx/-/trails/2820/changes/mise/1041

mise oci printed a WARN ... has an absolute target outside the tool's install dir; it will be dangling inside the container for every absolute symlink in a [bootstrap.packages] layer. With apt:buildah, that is the whole /etc/alternatives/* set:

mise WARN  oci layer: symlink /tmp/mise-oci-apt-rootfs-6PrUV2/diff/etc/alternatives/arptables → /usr/sbin/arptables-nft has an absolute target outside the tool's install dir; it will be dangling inside the container

The warnings were wrong. A system package layer is a rootfs overlay extracted at /, so /usr/sbin/arptables-nft is already the correct in-image path and the link resolves fine. The layer builder was passing these links through the tool-relocation logic, which assumes the tree moves under /mise and could also have rewritten a target relative to the temporary build directory.

System package layers now keep symlink targets exactly as the package installed them. Tool layers are unchanged and still warn about, or rebase, links that really would dangle.

Reported in #12195.

Tested with a unit test for an etc/alternatives/arptables → /usr/sbin/arptables-nft link in a preserved-metadata layer (cargo test -p mise-oci -p mise --lib layer).

AI-assisted — Tool: Claude Code; model: anthropic/claude-sonnet-5-5; version: claude-code_2-1-308_agent.

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Entire-Checkpoint: 01M5T7WY8PS6PXZ292W288DQNY
@coderabbitai

coderabbitai Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 26 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration
Commits

Reviewing files that changed from the base of the PR and between 1974671 and c8e1b20.

Files selected for processing: 1
  • crates/mise-oci/src/layer.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@greptile-apps

greptile-apps Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

System package layers keep symlink targets unchanged. Tool layers retain their existing rebasing behavior.

  • System package layers keep symlink targets exactly as installed.

Reviews (2) · Last reviewed commit: "test(oci): cover build-dir-matching targ..." · Reviewed by Greptile

Comment thread crates/mise-oci/src/layer.rs Resolved
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Entire-Checkpoint: 01M5T8B9WVE0DG1S5E24R20YBV
@jdx
jdx merged commit 75c11f9 into main Oct 25, 2026
46 checks passed
@jdx
jdx deleted the claude/mise-discussion-thoughts-b008d6 branch October 25, 2026 20:25
jdx pushed a commit that referenced this pull request Oct 26, 2026
<!-- entire-trail-link-start -->
https://entire.com/gh/jdx/-/trails/2808/changes/mise/1030
<!-- entire-trail-link-end -->

### 🚀 Features

- **(bootstrap)** let Homebrew upgrade casks mise installs by @jdx in
[#14929](#14929)
- **(bootstrap)** manage existing systemd user units from
bootstrap.services by @jdx in
[#14980](#14980)
- **(bootstrap)** install Windows packages with Chocolatey by @jdx in
[#14978](#14978)
- **(bootstrap)** support launchd launch events by @deecewan in
[#14992](#14992)
- **(dotfiles)** render templates in dotfiles.root by @jdx in
[#14969](#14969)
- **(github)** add version_regex to list only matching release tags by
@jdx in [#14984](#14984)

### 🐛 Bug Fixes

- **(backends)** name --global in the switch warning for global lock
entries by @jdx in [#14976](#14976)
- **(bootstrap)** find a just-installed git outside startup PATH by
@pmmmwh in [#14919](#14919)
- **(bootstrap)** pin full container ids when hashing compose service
references by @jdx in [#14958](#14958)
- **(config)** warn about an ignored write_targets only when a write
uses it by @jdx in [#14973](#14973)
- **(doctor)** accept any registry-listed backend for an explicit
install by @jdx in [#14965](#14965)
- **(doctor)** color mise doctor project output by @jdx in
[#14970](#14970)
- **(dot)** show the local history path in status and explain split
track entries by @jdx in
[#14979](#14979)
- **(dot)** resolve a relative dot add --source from the current
directory by @jdx in [#14983](#14983)
- **(env)** avoid sops CLI recursion through mise shims by @shuaiyafei
in [#14801](#14801)
- **(hook-env)** install error hooks before the hook-env fast path by
@jdx in [#14963](#14963)
- **(http)** accept # comment lines in netrc files by @jdx in
[#14964](#14964)
- **(http)** apply Tera filters to {{ version }} in tool option
templates by @jdx in [#14967](#14967)
- **(lock)** keep npm sidecars in one place for a symlinked config dir
by @jdx in [#14961](#14961)
- **(lock)** skip platforms excluded by a tool's os option by @jdx in
[#14959](#14959)
- **(npm)** skip the aube tree health walk in repeated hook-env runs on
Windows by @jdx in [#14960](#14960)
- **(oci)** keep absolute symlink targets in system package layers by
@jdx in [#14968](#14968)
- **(oci)** write aliased tools by their resolved backend in the image
config by @jdx in [#14971](#14971)
- **(self-update)** leave WinGet-managed installs to winget by @jdx in
[#14977](#14977)
- **(shim)** keep command wrappers in place during a concurrent reshim
by @HackingGate in [#14931](#14931)
- **(task)** stop sibling tasks run through Git Bash when a task fails
on Windows by @jdx in [#14966](#14966)

### 📚 Documentation

- **(ide)** add mise-zed, and screenshots of mise-vscode and mise-zed by
@hverlin in [#14988](#14988)
- **(templates)** list the settings that render templates by @jdx in
[#15004](#15004)
- **(use)** explain that a bare tool reuses the newest installed version
by @sahidvelji in [#14949](#14949)

### 📦️ Dependency Updates

- update aube to v2.8.3 by @renovate[bot] in
[#14957](#14957)
- update jdx crates to v7.1.2 by @renovate[bot] in
[#14934](#14934)

### 📦 Registry

- add packslip and aqua backends to jactionlint by @sahidvelji in
[#14947](#14947)

### Security

- **(config)** make elevate_with a global-only setting by @jdx in
[#14972](#14972)

### New Contributors

- @deecewan made their first contribution in
[#14992](#14992)
- @HackingGate made their first contribution in
[#14931](#14931)
- @shuaiyafei made their first contribution in
[#14801](#14801)
- @sahidvelji made their first contribution in
[#14949](#14949)

## 📦 Aqua Registry Updates

### New Packages (2)

- [`glsec/glsec`](https://github.com/glsec/glsec)
- [`yashikota/tlc-static`](https://github.com/yashikota/tlc-static)

### Updated Packages (8)

- [`cloudposse/atmos`](https://github.com/cloudposse/atmos)
- [`jdx/mise`](https://github.com/jdx/mise)
-
[`suzuki-shunsuke/ci-info`](https://github.com/suzuki-shunsuke/ci-info)
- [`suzuki-shunsuke/cmdx`](https://github.com/suzuki-shunsuke/cmdx)
-
[`suzuki-shunsuke/disable-checkout-persist-credentials`](https://github.com/suzuki-shunsuke/disable-checkout-persist-credentials)
-
[`suzuki-shunsuke/ghalint`](https://github.com/suzuki-shunsuke/ghalint)
- [`suzuki-shunsuke/ghatm`](https://github.com/suzuki-shunsuke/ghatm)
-
[`suzuki-shunsuke/mkghtag`](https://github.com/suzuki-shunsuke/mkghtag)
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