提交 23c2fca5 作者: Steven Allen

gx: fix build for unrewrite

And add a dummy package that refuses to build unless we're using gx.

fixes #4831

License: MIT
Signed-off-by: 's avatarSteven Allen <steven@stebalien.com>
上级 4890d596
...@@ -5,6 +5,7 @@ import ( ...@@ -5,6 +5,7 @@ import (
commands "github.com/ipfs/go-ipfs/core/commands" commands "github.com/ipfs/go-ipfs/core/commands"
_ "github.com/gxed/go-require-gx"
cmds "github.com/ipfs/go-ipfs-cmds" cmds "github.com/ipfs/go-ipfs-cmds"
) )
......
...@@ -2,6 +2,7 @@ gx-path = gx/ipfs/$(shell gx deps find $(1))/$(1) ...@@ -2,6 +2,7 @@ gx-path = gx/ipfs/$(shell gx deps find $(1))/$(1)
gx-deps: gx-deps:
gx install --global gx install --global
gx-go rw
.PHONY: gx-deps .PHONY: gx-deps
ifneq ($(IPFS_GX_USE_GLOBAL),1) ifneq ($(IPFS_GX_USE_GLOBAL),1)
......
...@@ -580,6 +580,12 @@ ...@@ -580,6 +580,12 @@
"hash": "QmZMWMvWMVKCbHetJ4RgndbuEF1io2UpUxwQwtNjtYPzSC", "hash": "QmZMWMvWMVKCbHetJ4RgndbuEF1io2UpUxwQwtNjtYPzSC",
"name": "go-ipfs-files", "name": "go-ipfs-files",
"version": "1.0.1" "version": "1.0.1"
},
{
"author": "stebalien",
"hash": "QmQKUCtsLJJHvqejxsDM3Nk3VqFFCg7JR7gPmnL2GW6RHs",
"name": "go-require-gx",
"version": "1.0.0"
} }
], ],
"gxVersion": "0.10.0", "gxVersion": "0.10.0",
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论