提示:
timeout
https://proxy.golang.org/github.com/mitchellh/mapstructure/@v/v1.4.2.mo
錯誤內容:
但是,下到的1.4.2.mod 文件中,里面就只有兩行內容
module github.com/mitchellh/mapstructure go 1.14
內容截圖:
報錯詳情:
CONFIG_GOLANG_MOD_CACHE_WORLD_READABLE="" GO_BUILD_CACHE_DIR="/home/ubuntu/lede/tmp/go-build" GO_MOD_CACHE_DIR="/home/ubuntu/lede/dl/go-mod-cache" GO_MOD_ARGS="-modcacherw" GO_PKG="github.com/cnsilvan/UnblockNeteaseMusic" GO_INSTALL_EXTRA="" GO_INSTALL_ALL="" GO_SOURCE_ONLY="" GO_BUILD_PKG="github.com/cnsilvan/UnblockNeteaseMusic" GO_EXCLUDES="" GO_GO_GENERATE="" GO_INSTALL_BIN_PATH="/usr/bin" BUILD_DIR="/home/ubuntu/lede/build_dir/target-x86_64_musl/UnblockNeteaseMusic-0.2.13" GO_BUILD_DIR="/home/ubuntu/lede/build_dir/target-x86_64_musl/UnblockNeteaseMusic-0.2.13/.go_work/build" GO_BUILD_BIN_DIR="/home/ubuntu/lede/build_dir/target-x86_64_musl/UnblockNeteaseMusic-0.2.13/.go_work/build/bin" GO_BUILD_DEPENDS_PATH="/usr/share/gocode" GO_BUILD_DEPENDS_SRC="/home/ubuntu/lede/staging_dir/target-x86_64_musl/usr/share/gocode/src" GOOS="linux" GOARCH="amd64" GO386="" GOARM="" GOMIPS="" GOMIPS64="" CGO_ENABLED=1 CC="x86_64-openwrt-linux-musl-gcc" CXX="x86_64-openwrt-linux-musl-g++" CGO_CFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/home/ubuntu/lede/build_dir/target-x86_64_musl/UnblockNe teaseMusic-0.2.13=UnblockNeteaseMusic-0.2.13 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" CGO_CPPFLAGS="-I/home/ubuntu/lede/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/usr/include -I/home/ubuntu/lede/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/include/fortify -I/home/ubuntu/lede/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/include" CGO_CXXFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-vari able -Wno-error=unused-result -fmacro-prefix-map=/home/ubuntu/lede/build_dir/target-x86_64_musl/UnblockNeteaseMusic-0.2.13=UnblockNeteaseMusic-0.2.13 -Wformat -Werror= format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" CGO_LDFLAGS="-L/home/ubuntu/lede/staging_dir/toolchain-x86_64_gcc-8.4.0_m usl/usr/lib -L/home/ubuntu/lede/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/lib -znow -zrelro" GOPATH="/home/ubuntu/lede/build_dir/target-x86_64_musl/UnblockNet easeMusic-0.2.13/.go_work/build" GOCACHE="/home/ubuntu/lede/tmp/go-build" GOMODCACHE="/home/ubuntu/lede/dl/go-mod-cache" GOENV=off /usr/bin/env bash ../../lang/gol ang//golang-build.sh build -v -trimpath -ldflags "all=-buildid '1646709695' -linkmode external -extldflags '-L/home/ubuntu/lede/staging_dir/toolchain-x86_64_gcc-8.4.0_m usl/usr/lib -L/home/ubuntu/lede/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/lib -Wl,-z,now -Wl,-z,relro'" -ldflags "-s -w -X 'github.com/cnsilvan/UnblockNeteaseMusic/version.Version=0.2.13' -X 'github.com/cnsilvan/Unbl ockNeteaseMusic/version.BuildTime=2022-03-13 20:50:10' -X 'github.com/cnsilvan/UnblockNeteaseMusic/version.ExGoVersionInfo= ' -buildid '1646709695' -linkmode external -extldflags '-L/home/ubuntu/lede/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/usr/lib -L/home/ubuntu/lede/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/lib -Wl,-z,now -Wl,-z,relro'" Finding targets go: github.com/mitchellh/mapstructure@v1.4.2: Get "https://proxy.golang.org/github.com/mitchellh/mapstructure/@v/v1.4.2.mod": dial tcp 172.217.160.81:443: i/o timeout go: downloading github.com/mitchellh/mapstructure v1.4.2 go: downloading golang.org/x/text v0.3.3 go: github.com/mitchellh/mapstructure@v1.4.2: Get "https://proxy.golang.org/github.com/mitchellh/mapstructure/@v/v1.4.2.mod": dial tcp 172.217.160.81:443: i/o timeout Building targets go: github.com/mitchellh/mapstructure@v1.4.2: Get "https://proxy.golang.org/github.com/mitchellh/mapstructure/@v/v1.4.2.mod": dial tcp 172.217.160.81:443: i/o timeout go: github.com/mitchellh/mapstructure@v1.4.2: Get "https://proxy.golang.org/github.com/mitchellh/mapstructure/@v/v1.4.2.mod": dial tcp 172.217.160.81:443: i/o timeout Makefile:83: recipe for target '/home/ubuntu/lede/build_dir/target-x86_64_musl/UnblockNeteaseMusic-0.2.13/.built' failed make[3]: *** [/home/ubuntu/lede/build_dir/target-x86_64_musl/UnblockNeteaseMusic-0.2.13/.built] Error 1 make[3]: Leaving directory '/home/ubuntu/lede/feeds/packages/multimedia/UnblockNeteaseMusic-Go' time: package/feeds/packages/UnblockNeteaseMusic-Go/compile#0.27#0.22#90.57 ERROR: package/feeds/packages/UnblockNeteaseMusic-Go failed to build. package/Makefile:114: recipe for target 'package/feeds/packages/UnblockNeteaseMusic-Go/compile' failed make[2]: *** [package/feeds/packages/UnblockNeteaseMusic-Go/compile] Error 1 make[2]: Leaving directory '/home/ubuntu/lede' package/Makefile:110: recipe for target '/home/ubuntu/lede/staging_dir/target-x86_64_musl/stamp/.package_compile' failed make[1]: *** [/home/ubuntu/lede/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2 make[1]: Leaving directory '/home/ubuntu/lede' /home/ubuntu/lede/include/toplevel.mk:228: recipe for target 'world' failed make: *** [world] Error 2
解決方法:
編譯全程“扶牆”上網
-