Skip to content

Commit

Permalink
gx: fix build for unrewrite
Browse files Browse the repository at this point in the history
And add a dummy package that refuses to build unless we're using gx.

fixes #4831

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
  • Loading branch information
Stebalien committed Oct 18, 2018
1 parent 4890d59 commit 23c2fca
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/ipfs/ipfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

commands "github.com/ipfs/go-ipfs/core/commands"

_ "github.com/gxed/go-require-gx"
cmds "github.com/ipfs/go-ipfs-cmds"
)

Expand Down
1 change: 1 addition & 0 deletions mk/gx.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ gx-path = gx/ipfs/$(shell gx deps find $(1))/$(1)

gx-deps:
gx install --global
gx-go rw
.PHONY: gx-deps

ifneq ($(IPFS_GX_USE_GLOBAL),1)
Expand Down
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,12 @@
"hash": "QmZMWMvWMVKCbHetJ4RgndbuEF1io2UpUxwQwtNjtYPzSC",
"name": "go-ipfs-files",
"version": "1.0.1"
},
{
"author": "stebalien",
"hash": "QmQKUCtsLJJHvqejxsDM3Nk3VqFFCg7JR7gPmnL2GW6RHs",
"name": "go-require-gx",
"version": "1.0.0"
}
],
"gxVersion": "0.10.0",
Expand Down

0 comments on commit 23c2fca

Please sign in to comment.