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

place the multicall links in $PATH #4867

Closed
wants to merge 1 commit into from
Closed
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
8 changes: 6 additions & 2 deletions k3s.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: k3s
version: 1.27.4
epoch: 3
epoch: 4
description:
copyright:
- license: Apache-2.0
Expand Down Expand Up @@ -82,8 +82,12 @@ pipeline:
mkdir -p "${{targets.destdir}}"/bin/
mv bin/k3s "${{targets.destdir}}"/bin/_k3s-inner

# ensure `ctr` is also packaged
sed -i 's/for i in containerd crictl/for i in containerd crictl ctr/' ./scripts/package-cli

# Modify the packaging script to exclusively use symlinks to our moved "inner" binary
sed -i 's|ln -s k3s bin/$i|ln -s /bin/_k3s-inner bin/$i|g' ./scripts/package-cli
# Also create a copy of the symlink in /bin/ to support callers depending on $PATH
sed -i 's|ln -s k3s bin/$i|ln -s /bin/_k3s-inner ${{targets.destdir}}/bin/$i|g' ./scripts/package-cli

# Remove the upload portion from the upstream package-cli script
sed -e '/scripts\/build-upload/d' -i scripts/package-cli
Expand Down