mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-06-11 00:32:05 +08:00
goproxy: replace unavailable goproxy.io (#6371)
The currently used goproxy.io will redirect to proxy.golang.com.cn and cause compilation failure.
This commit is contained in:
parent
0de1301c53
commit
db3ec85639
@ -34,8 +34,7 @@ endef
|
|||||||
|
|
||||||
ifeq ($(CONFIG_$(PKG_NAME)_INCLUDE_GOPROXY),y)
|
ifeq ($(CONFIG_$(PKG_NAME)_INCLUDE_GOPROXY),y)
|
||||||
export GO111MODULE=on
|
export GO111MODULE=on
|
||||||
export GOPROXY=https://goproxy.io
|
export GOPROXY=https://goproxy.cn
|
||||||
#export GOPROXY=https://mirrors.aliyun.com/goproxy/
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
define Package/$(PKG_NAME)
|
define Package/$(PKG_NAME)
|
||||||
@ -73,5 +72,6 @@ define Package/$(PKG_NAME)/install
|
|||||||
$(INSTALL_DIR) $(1)/usr/share/UnblockNeteaseMusicGo
|
$(INSTALL_DIR) $(1)/usr/share/UnblockNeteaseMusicGo
|
||||||
$(CP) ./files/* $(1)/usr/share/UnblockNeteaseMusicGo/
|
$(CP) ./files/* $(1)/usr/share/UnblockNeteaseMusicGo/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call GoBinPackage,$(PKG_NAME)))
|
$(eval $(call GoBinPackage,$(PKG_NAME)))
|
||||||
$(eval $(call BuildPackage,$(PKG_NAME)))
|
$(eval $(call BuildPackage,$(PKG_NAME)))
|
||||||
|
@ -40,8 +40,7 @@ endef
|
|||||||
|
|
||||||
ifeq ($(CONFIG_$(PKG_NAME)_INCLUDE_GOPROXY),y)
|
ifeq ($(CONFIG_$(PKG_NAME)_INCLUDE_GOPROXY),y)
|
||||||
export GO111MODULE=on
|
export GO111MODULE=on
|
||||||
export GOPROXY=https://goproxy.io
|
export GOPROXY=https://goproxy.cn
|
||||||
#export GOPROXY=https://mirrors.aliyun.com/goproxy/
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
define Package/$(PKG_NAME)
|
define Package/$(PKG_NAME)
|
||||||
@ -70,5 +69,6 @@ define Package/$(PKG_NAME)/install
|
|||||||
$(INSTALL_DIR) $(1)/usr/bin
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
$(INSTALL_BIN) $(GO_PKG_BUILD_BIN_DIR)/v2ray-plugin $(1)/usr/bin/v2ray-plugin
|
$(INSTALL_BIN) $(GO_PKG_BUILD_BIN_DIR)/v2ray-plugin $(1)/usr/bin/v2ray-plugin
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call GoBinPackage,$(PKG_NAME)))
|
$(eval $(call GoBinPackage,$(PKG_NAME)))
|
||||||
$(eval $(call BuildPackage,$(PKG_NAME)))
|
$(eval $(call BuildPackage,$(PKG_NAME)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user