-
Notifications
You must be signed in to change notification settings - Fork 527
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
Cannot build from the source - go get fails with accountsRes.Value undefined in api/common/conf_azure.go line 272 #527
Comments
This is also my pain.
|
@kahing Please help us to build this repo successfully. Thank you. |
I'm in the same trouble, have you fixed it? @maobaolong |
modify go.mod in you project.
|
@maobaolong @PengleiShi I had the same issue as you guys, new to git and had to work it out. Here is what I did. Create a directory for github project to download to (logged in as root, so done in root home dir): Pull in goofys project:
Set my environment variables appropriately:
Next I went up one directory to github.com, then pulled in the Azure project (not sure if this was necessary, just documenting what I did):
Once that finished I went back to the goofys directory and populated the submodule repositories using following commands:
Finally, I installed goofys using full path to the src (not sure why I needed to give full path, but it only worked for me with full path):
The goofys utility is in the bin directory for your go project space:
Hope this helps. |
@OneAceGuy your suggestion worked for me (with proper paths changed to what I have and with GO updated to version 1.16) Thanks |
|
I have installed goofys as your steps successfully,but I don't find goofys command,Do I need to do anything else?I don't find bin directory in go project space |
@hongjun0619 there are too many things it might be - ownership, permissions, different distro, different configs... take your pick. A few suggestions:
Read this article for tips on how to build go programs. |
@OneAceGuy |
I found a easy way to install, but it only works on x84_64 system(don't need go): wget http://bit.ly/goofys-latest |
@OneAceGuy goofys --versionpanic: Page size is unexpectedly 65536 goroutine 1 [running]: |
@OneAceGuy |
Version: current 0.24.0
GO Version: 1.14.4 linux/amd64
System:
Linux #1 SMP Debian 3.16.57-2 (2018-07-14) x86_64 GNU/Linux
Commands that were run:
cd /root/goofys
export GOPATH=/root/goofys
go get github.com/kahing/goofys
Expected result: project with dependencies downloaded
Result:
# github.com/kahing/goofys/api/common
src/github.com/kahing/goofys/api/common/conf_azure.go:272:34: accountsRes.Value undefined (type storage.AccountListResultPage has no field or method Value)
src/github.com/kahing/goofys/api/common/conf_azure.go:373:35: not enough arguments in call to client.ListKeys
have (context.Context, string, string)
want (context.Context, string, string, storage.ListKeyExpand)
I think that Azure SDK for GO added some breaking changes and it breaks the process, nevertheless could not quickly find out which version / revision is working.
The text was updated successfully, but these errors were encountered: