summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndřej Surý <ondrej@sury.org>2011-02-18 16:37:09 +0100
committerOndřej Surý <ondrej@sury.org>2011-02-18 16:37:09 +0100
commit5e92cf425fb3edab8f418e6fe8d5faee1d8d3373 (patch)
tree2410e1ff9ff3cfbd53fbb4b15da5068c2b264da1
parentc95f70e1c32e85db91067f5914cba42406ae1792 (diff)
downloadgolang-5e92cf425fb3edab8f418e6fe8d5faee1d8d3373.tar.gz
Add warning also directly to goinstall command
-rw-r--r--debian/patches/004-dont_reinstall_dependencies_in_goinstall.patch12
1 files changed, 10 insertions, 2 deletions
diff --git a/debian/patches/004-dont_reinstall_dependencies_in_goinstall.patch b/debian/patches/004-dont_reinstall_dependencies_in_goinstall.patch
index a4690f882..ee395b0c7 100644
--- a/debian/patches/004-dont_reinstall_dependencies_in_goinstall.patch
+++ b/debian/patches/004-dont_reinstall_dependencies_in_goinstall.patch
@@ -1,6 +1,14 @@
--- a/src/cmd/goinstall/main.go
+++ b/src/cmd/goinstall/main.go
-@@ -43,6 +43,7 @@ var (
+@@ -21,6 +21,7 @@ import (
+ )
+
+ func usage() {
++ fmt.Fprintf(os.Stderr, "WARNING: Usage of goinstall is highly discouraged on Debian system. goinstall is not FHS friendly and it will possibly overwrite files from the package creating a highly unstable mess in /usr/lib/golang. You have been warned!\n"
+ fmt.Fprint(os.Stderr, "usage: goinstall importpath...\n")
+ fmt.Fprintf(os.Stderr, "\tgoinstall -a\n")
+ flag.PrintDefaults()
+@@ -43,6 +44,7 @@ var (
update = flag.Bool("u", false, "update already-downloaded packages")
clean = flag.Bool("clean", false, "clean the package directory before installing")
verbose = flag.Bool("v", false, "verbose")
@@ -8,7 +16,7 @@
)
type status int // status for visited map
-@@ -189,7 +190,11 @@ func install(pkg, parent string) {
+@@ -189,7 +191,11 @@ func install(pkg, parent string) {
}
for _, p := range dirInfo.imports {
if p != "C" {