Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/go: golang unexpected directory layout #21252

Closed
xuanliu-aa opened this issue Aug 1, 2017 · 8 comments
Closed

cmd/go: golang unexpected directory layout #21252

xuanliu-aa opened this issue Aug 1, 2017 · 8 comments

Comments

@xuanliu-aa
Copy link

xuanliu-aa commented Aug 1, 2017

What version of Go are you using (go version)?

go version go1.8.3 darwin/amd64

What operating system and processor architecture are you using (go env)?

GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/xuanliu/Downloads/minio-RELEASE.2017-06-13T19-01-01Z:/Users/xuanliu/go"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.8.3/libexec"
GOTOOLDIR="/usr/local/Cellar/go/1.8.3/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/8v/6dg7d6mx2850sv1gp8ts9thm0000gn/T/go-build641822432=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"

What did you do?

So I downloaded minio from github.com/minio/minio

I want to run it from the source,

I create my directory like:

~/Downloads/minio-RELEASE.2017-06-13T19-01-01Z
|
 src
   |
    all minio directories, including vendor, like the image below

golang

vendor directory contains all code.

What did you expect to see?

minio server launched successfully

What did you see instead?

unexpected directory layout:
	import path: github.com/Azure/azure-sdk-for-go/storage
	root: /Users/xuanliu/Downloads/minio-RELEASE.2017-06-13T19-01-01Z/src
	dir: /Users/xuanliu/Downloads/minio-RELEASE.2017-06-13T19-01-01Z/src/vendor/github.com/Azure/azure-sdk-for-go/storage
	expand root: /Users/xuanliu/Downloads/minio-RELEASE.2017-06-13T19-01-01Z/src
	expand dir: /Users/xuanliu/Downloads/minio-RELEASE.2017-06-13T19-01-01Z/src/vendor/github.com/Azure/azure-sdk-for-go/storage
	separator: /
@davecheney
Copy link
Contributor

I'm sorry but this is not correct forum for asking for minio support. The best place I can find to ask your question is on the minio issue tracker.

https://github.com/minio/minio

@xuanliu-aa
Copy link
Author

xuanliu-aa commented Aug 1, 2017

@davecheney clearly it's not about minio, it's about go, isn't it? I got all code and files and go report simply unexpected directory layout while I follow the layout

I hope you take a look at give an guidance where goes off and close it, not just "sorry"

specifically,

unexpected directory layout:
	import path: github.com/Azure/azure-sdk-for-go/storage
	root: /Users/xuanliu/Downloads/minio-RELEASE.2017-06-13T19-01-01Z/src
	dir: /Users/xuanliu/Downloads/minio-RELEASE.2017-06-13T19-01-01Z/src/vendor/github.com/Azure/azure-sdk-for-go/storage
	expand root: /Users/xuanliu/Downloads/minio-RELEASE.2017-06-13T19-01-01Z/src
	expand dir: /Users/xuanliu/Downloads/minio-RELEASE.2017-06-13T19-01-01Z/src/vendor/github.com/Azure/azure-sdk-for-go/storage
	separator: /

I doun't find any documentation about what's wrong about it. The error message seems useless as the directories are all correct and files are under them. I honestly think this is the worst error message in go.

As an go expert, can't you tell what's wrong? If you were not able to tell, how do you expect other dev to understand the error..

@bradfitz
Copy link
Contributor

bradfitz commented Aug 1, 2017

If you have a Go bug report, give us a minimal example without involving Minio.

And give us repro instructions that don't involve looking at screenshots to infer directory layouts.

@davecheney
Copy link
Contributor

@xuanliu-aa again, this is not a support forum for programs written in Go. I have no experience with how to build minio from source, especially as it looks like you're using the automatic tarball from github's tagging service.

The minio documentation will explain how to build their product, this is not something that the Go project can help you with.

Thank you for your understanding.

@xuanliu-aa
Copy link
Author

xuanliu-aa commented Aug 1, 2017

alright, but can you tell me what's the error root cause, isn't this go project scope?

minio does not give instructions, and I followed golang instructions to create the src folder and add them into GOPATH.

the error message lists a bunch of directories, but does not tell what's wrong at all. That's what I am confused.

The true is I googled a lot about this error, but no official one. All I ask is about what could be causes so I can fix it, I think you guys are the creators so you may know the answer. Thanks

@davecheney
Copy link
Contributor

We don't the issue tracker to ask questions. Please see https://golang.org/wiki/Questions for good places to ask. Thanks.

@xuanliu-aa
Copy link
Author

ah, ok. thanks.

@davecheney
Copy link
Contributor

davecheney commented Aug 1, 2017 via email

@mikioh mikioh changed the title golang unexpected directory layout cmd/go: golang unexpected directory layout Aug 2, 2017
@golang golang locked and limited conversation to collaborators Aug 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants