kubernetes-sigs / krew

📦 Find and install kubectl plugins
https://krew.sigs.k8s.io
Apache License 2.0
6.33k stars 364 forks source link

Use relative symlinks in krew/bin #822

Open SuperSandro2000 opened 1 year ago

SuperSandro2000 commented 1 year ago

I want to use XDG base directories (#815) and got this suggestion from this post:

We offer facilities like KREW_ROOT env var that lets you customize installation path (where binaries and configs go etc), so that may help to some extent.

I set KREW_ROOT to $HOME/.local/share/krew and moved $HOME/.krew to there.

After that no plugins worked anymore because all files in $KREW_ROOT/bin where use absolute symlinks instead of relative ones. I quickly fixed this by running ln -srf ../store/krew/*/krew kubectl-krew and similar commands for all plugins.

At least on windows I think this should be the default behavior to make the move to XDG directories easier, allow renaming/moving the home directory.

k8s-triage-robot commented 1 year ago

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

kundan2707 commented 1 year ago

/remove-lifecycle stale

k8s-triage-robot commented 7 months ago

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot commented 6 months ago

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

SuperSandro2000 commented 6 months ago

/remove-lifecycle rotten

k8s-triage-robot commented 3 months ago

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

SuperSandro2000 commented 3 months ago

/remove-lifecycle stale

k8s-triage-robot commented 3 weeks ago

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

SuperSandro2000 commented 3 weeks ago

/remove-lifecycle stale