storyicon / gos Goto Github PK
View Code? Open in Web Editor NEWGos: Armed Golang 💪 ( solutions for go module, goproxy, cross compilation, etc.)
License: Apache License 2.0
Gos: Armed Golang 💪 ( solutions for go module, goproxy, cross compilation, etc.)
License: Apache License 2.0
win10
GOS_UPSTREAM_ADDRESS=https://goproxy.io
gos get -u -v github.com/Go-zh/tools
D:\gowork>gos get -u -v github.com/Go-zh/tools
debug mode is on
local proxy run on: [::]:1342
Fetching http://127.0.0.1:1342/github.com/%21go-zh/tools/@v/list
upstream address: https://goproxy.io
try upstream: github.com/Go-zh/tools
upstream error: github.com/Go-zh/tools not found
try local github.com/Go-zh/tools <nil>
Fetching http://127.0.0.1:1342/golang.org/x/tools/@v/list
Fetching http://127.0.0.1:1342/golang.org/x/net/@v/list
try upstream: golang.org/x/tools
Fetching http://127.0.0.1:1342/golang.org/x/crypto/@v/list
Fetching http://127.0.0.1:1342/golang.org/x/text/@v/list
Fetching http://127.0.0.1:1342/golang.org/x/sys/@v/list
try upstream: golang.org/x/net
try upstream: golang.org/x/crypto
try upstream: golang.org/x/text
try upstream: golang.org/x/sys
upstream error: golang.org/x/sys not found
upstream error: golang.org/x/crypto not found
upstream error: golang.org/x/tools not found
upstream error: golang.org/x/net not found
try local golang.org/x/crypto go list -m golang.org/x/crypto: module "golang.org/x/crypto" is not a known dependency
go get: upgrading golang.org/x/[email protected]: unexpected status (http://127.0.0.1:1342/golang.org/x/crypto/@v/list): 500 Internal Server Error
try local golang.org/x/sys go list -m golang.org/x/sys: module "golang.org/x/sys" is not a known dependency
go get: upgrading golang.org/x/[email protected]: unexpected status (http://127.0.0.1:1342/golang.org/x/sys/@v/list): 500 Internal Server Error
try local golang.org/x/tools go list -m golang.org/x/tools: module "golang.org/x/tools" is not a known dependency
go get: upgrading golang.org/x/[email protected]: unexpected status (http://127.0.0.1:1342/golang.org/x/tools/@v/list): 500 Internal Server Error
go get: upgrading golang.org/x/[email protected]: unexpected status (http://127.0.0.1:1342/golang.org/x/tools/@v/list): 500 Internal Server Error
try local golang.org/x/net go list -m golang.org/x/net: module "golang.org/x/net" is not a known dependency
go get: upgrading golang.org/x/[email protected]: unexpected status (http://127.0.0.1:1342/golang.org/x/net/@v/list): 500 Internal Server Error
go get: upgrading golang.org/x/[email protected]: unexpected status (http://127.0.0.1:1342/golang.org/x/net/@v/list): 500 Internal Server Error
exit status 1
阅读了整个代码,大体了解了设计思路。没有发现其有下载私有repo的功能
我想知道编译其他平台的代码,有c语言依赖的时候如何解决跨平台编译的
the error shows like:
DEBUG dmake.build(231) 2019-06-12 18:29:39,620 compile: go: gitlab.com/xxxx/[email protected]: unexpected status (http://127.0.0.1:41719/gitlab.com/xxx/xxx/@v/v0.0.0-yyyyy-yyyyy.info): 500 Internal Server Error
GOOS=linux GOARCH=amd64 CGO_ENABLED=1 GO111MODULE=on ./gos install -race -v
in image golang:v1.12.1
v1.12.1
I set Env CGO_ENABLED=1
use
gos cross xxxx.go linux
but not working
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.