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

Default binlink to all bins in package #2007

Merged
merged 1 commit into from
Mar 28, 2017
Merged

Default binlink to all bins in package #2007

merged 1 commit into from
Mar 28, 2017

Conversation

nsdavidson
Copy link

Fixes #1921

This change makes the BINARY argument to the binlink command optional.
If omitted, all binaries in the package will be symlinked.

 ../../target/debug/hab pkg binlink -d /usr/local/bin core/net-tools
» Symlinking dnsdomainname from core/net-tools into /usr/local/bin
★ Binary dnsdomainname from core/net-tools/1.60/20161214060044 symlinked
to /usr/local/bin/dnsdomainname
» Symlinking ypdomainname from core/net-tools into /usr/local/bin
★ Binary ypdomainname from core/net-tools/1.60/20161214060044 symlinked
to /usr/local/bin/ypdomainname
» Symlinking domainname from core/net-tools into /usr/local/bin
★ Binary domainname from core/net-tools/1.60/20161214060044 symlinked to
/usr/local/bin/domainname
» Symlinking hostname from core/net-tools into /usr/local/bin
★ Binary hostname from core/net-tools/1.60/20161214060044 symlinked to
/usr/local/bin/hostname
» Symlinking netstat from core/net-tools into /usr/local/bin
★ Binary netstat from core/net-tools/1.60/20161214060044 symlinked to
/usr/local/bin/netstat

Signed-off-by: Nolan Davidson ndavidson@chef.io

Fixes #1921

This change makes the BINARY argument to the binlink command optional.
If omitted, all binaries in the package will be symlinked.

```
 ../../target/debug/hab pkg binlink -d /usr/local/bin core/net-tools
» Symlinking dnsdomainname from core/net-tools into /usr/local/bin
★ Binary dnsdomainname from core/net-tools/1.60/20161214060044 symlinked
to /usr/local/bin/dnsdomainname
» Symlinking ypdomainname from core/net-tools into /usr/local/bin
★ Binary ypdomainname from core/net-tools/1.60/20161214060044 symlinked
to /usr/local/bin/ypdomainname
» Symlinking domainname from core/net-tools into /usr/local/bin
★ Binary domainname from core/net-tools/1.60/20161214060044 symlinked to
/usr/local/bin/domainname
» Symlinking hostname from core/net-tools into /usr/local/bin
★ Binary hostname from core/net-tools/1.60/20161214060044 symlinked to
/usr/local/bin/hostname
» Symlinking netstat from core/net-tools into /usr/local/bin
★ Binary netstat from core/net-tools/1.60/20161214060044 symlinked to
/usr/local/bin/netstat
```

Signed-off-by: Nolan Davidson <ndavidson@chef.io>
@mwrock
Copy link
Contributor

mwrock commented Mar 28, 2017

This is great!

@mwrock
Copy link
Contributor

mwrock commented Mar 28, 2017

Note that the travis failure in not pertinent to this pr.

@mwrock
Copy link
Contributor

mwrock commented Mar 28, 2017

@thesentinels approve

@thesentinels
Copy link
Contributor

🤘 I am testing your branch against master before merging it. We do this to ensure that the master branch is never failing tests.

@thesentinels
Copy link
Contributor

:neckbeard: Travis CI has started testing this PR.

1 similar comment
@thesentinels
Copy link
Contributor

:neckbeard: Travis CI has started testing this PR.

@thesentinels
Copy link
Contributor

💖 Travis CI reports this PR passed.

It always makes me feel nice when humans approve of one anothers work. I'm merging this PR now.

I just want you and the contributor to answer me one question:

gif-keyboard-3280869874741411265

@thesentinels thesentinels merged commit 750760d into habitat-sh:master Mar 28, 2017
@eeyun eeyun added A-cli and removed Hab CLI labels Jun 6, 2017
@christophermaier christophermaier added Focus: CLI Related to the Habitat CLI (core/hab) component Type: Feature Issues that describe a new desired feature and removed A-cli labels Jul 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Focus: CLI Related to the Habitat CLI (core/hab) component Type: Feature Issues that describe a new desired feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make hab pkg binlink work with multiple files
6 participants