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

Symlink replaces are not working with apko, but do with apk-tools #43832

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion wolfi-base.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: wolfi-base
version: 1
epoch: 7
epoch: 8
description: "Wolfi base metapackage"
copyright:
- license: MIT
Expand All @@ -21,7 +21,29 @@ pipeline:
runs: |
mkdir -p "${{targets.destdir}}"

subpackages:
- name: package-with-symlink
pipeline:
- runs: |
mkdir -p ${{targets.contextdir}}/etc/
ln -s ../run/target1.conf ${{targets.contextdir}}/etc/some.conf

- name: package-with-symlink-replaces
dependencies:
runtime:
- package-with-symlink
replaces:
- package-with-symlink
pipeline:
- runs: |
mkdir -p ${{targets.contextdir}}/etc/
ln -s ../run/target2.conf ${{targets.contextdir}}/etc/some.conf

test:
environment:
contents:
packages:
- package-with-symlink-replaces
pipeline:
- name: "Commands exist"
runs: |
Expand Down
Loading