Coder Social home page Coder Social logo

storyicon / gos Goto Github PK

View Code? Open in Web Editor NEW
373.0 22.0 26.0 468 KB

Gos: Armed Golang 💪 ( solutions for go module, goproxy, cross compilation, etc.)

License: Apache License 2.0

Go 100.00%
go tools chain golang module mod proto grpc goproxy cross-compilation

gos's Issues

刚试了下,无法正常处理

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的功能

cannot pull gitlab package

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

how to build it

  1. in golang v1.12.4
  2. git checkout v1.1.0
  3. GOOS=linux GOARCH=amd64 CGO_ENABLED=0 GO111MODULE=on go build

how to exec it

GOOS=linux GOARCH=amd64 CGO_ENABLED=1 GO111MODULE=on ./gos install -race -v

go env

in image golang:v1.12.1

go version

v1.12.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.