Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Add Makefile target to build and install into GOPATH #81

Merged
merged 1 commit into from
Jan 24, 2018

Conversation

croomes
Copy link

@croomes croomes commented Jan 23, 2018

Saves having to copy the binary into your path when developing.

The touch version/client.go just makes sure you're rebuilding it.

@croomes croomes requested review from JoeReid and rusenask January 23, 2018 14:22
@@ -10,6 +10,10 @@ build:
@echo "++ Building storageos binary"
cd cmd/storageos && CGO_ENABLED=0 go build -ldflags "$(LDFLAGS)"

install:
@echo "++ Installing storageos binary into \$GOPATH/bin"
touch version/client.go && go install -ldflags "$(LDFLAGS)" github.com/storageos/go-cli/cmd/storageos
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

go install -a will also force re-build, as it supports the same flags as go build

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, but apparently a lot slower: golang/go#18369 (comment)

I'm fine with either.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll leave this to your discretion.

Otherwise this PR LGTM

@croomes croomes merged commit 0db9999 into master Jan 24, 2018
@croomes croomes deleted the feature/make-install branch April 27, 2018 15:21
domodwyer added a commit that referenced this pull request Jun 26, 2020
…dd-offline-delete-support-for-delete-volume to master

Squashed commit of the following:

commit 0d590ac3fe64713d78312a0a51c79275c8a69959
Author: Fraser Savage <[email protected]>
Date:   Tue May 19 10:21:05 2020 +0100

    Less confusor

commit 726478f41743ab1914f8f500bfb1ef25c7712f62
Author: Fraser Savage <[email protected]>
Date:   Mon May 18 11:31:57 2020 +0100

    cmd/delete: Support offline delete
domodwyer added a commit that referenced this pull request Jun 26, 2020
…dd-offline-delete-support-for-delete-volume to master

Squashed commit of the following:

commit 0d590ac3fe64713d78312a0a51c79275c8a69959
Author: Fraser Savage <[email protected]>
Date:   Tue May 19 10:21:05 2020 +0100

    Less confusor

commit 726478f41743ab1914f8f500bfb1ef25c7712f62
Author: Fraser Savage <[email protected]>
Date:   Mon May 18 11:31:57 2020 +0100

    cmd/delete: Support offline delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants