[MacPorts] #66987: kubectl_select @0.0.0 runtime failure
MacPorts
noreply at macports.org
Fri Feb 24 09:22:21 UTC 2023
#66987: kubectl_select @0.0.0 runtime failure
----------------------------+----------------------------
Reporter: tsabirgaliev | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Keywords: kubectl select | Port: kubectl_select
----------------------------+----------------------------
Selecting kubectl fails with this message:
{{{
❯ sudo port select --set kubectl kubectl1.26
Selecting 'kubectl1.26' for 'kubectl' failed: could not create new link
"/opt/local/share/bash-completion/completions/kubectl": no such file or
directory
}}}
This line [https://github.com/macports/macports-
ports/blob/master/sysutils/kubectl/Portfile#L211] in Portfile doesn't have
any effect, probably because destroot is skipped at install.
Invoking destroot explicitly doesn't help, because {{{bash-
completion/completions}}} directory is empty and is not added to
{{{destroot.keepdirs}}}.
=== Workarounds:
Install bash-completion prior to select kubectl
--
Ticket URL: <https://trac.macports.org/ticket/66987>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list