Comments (4)
.godir
is a great hack, but Go 1.4 added Custom Import Paths that we now prefer instead: https://golang.org/s/go14customimport
from docs.
ping @Moghedrin
from docs.
Just for reference, here's the current usage text:
$ docker run -it --rm golang go-wrapper
usage: go-wrapper command [args]
This script assumes that is is run from the root of your Go package (for
example, "/go/src/app" if your GOPATH is set to "/go").
The main feature of this wrapper over the native "go" tool is that it supports
the addition of a ".godir" file in your package directory which is a plain text
file that is the import path your application expects (ie, it would be something
like "github.com/jsmith/my-cool-app"). If this file is found, the current
package is then symlinked to /go/src/<.gopath> and the commands then use that
full import path to act on it. This allows for applications to be universally
cloned into a path like "/go/src/app" and then automatically built properly so
that inter-package imports use the existing source instead of downloading it a
second time. This also makes the final binary have the correct name (ie,
instead of being "/go/bin/app", it can be "/go/bin/my-cool-app"), which is why
the "run" command exists here.
Available Commands:
go-wrapper download
go-wrapper download -u
(equivalent to "go get -d [args] [godir]")
go-wrapper install
go-wrapper install -race
(equivalent to "go install [args] [godir]")
go-wrapper run
go-wrapper run -app -specific -arguments
(assumes "GOPATH/bin" is in "PATH")
from docs.
We don't support golang versions older than 1.4
now, so we can remove the "undocumented .godir
". 😈
from docs.
Related Issues (20)
- eclipse-temurin - New JDK release 17.0.7 HOT 1
- mysql connects using wrong username HOT 1
- apache 2 Workers limit HOT 1
- Error in log - FATAL: database "armkdbd" does not exist
- Suggested Improvements to README.md
- Azure Storage as primary data HOT 4
- What means "rc" (lower case) in image tag? HOT 2
- Install extension on creation HOT 1
- Document issues with postgresql, K8s, and transparent huge pages HOT 1
- README.md typo (missing space after flag) HOT 3
- Can't run postgis client container HOT 1
- Configure InfluxDB to use TLS HOT 1
- Request: adding Docker health check to `postgres/README.md` HOT 6
- Version tags for additional packages HOT 1
- mariadb logo change, in repo, not on hub HOT 6
- Official Image hub does not have latest tags HOT 1
- Upgrade to 28.0.2 problem
- Improve instructions for installing the required `bashbrew` HOT 4
- docker pull tianon/markdownfmt error: "no matching manifest for linux/arm64/v8..." HOT 1
- new env for auto configuration via environment variables for ldapUserCleanupInterval
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docs.