Closed sugarp0pe closed 4 years ago
What's your go version?
Can you install amass directly via this command go get -u github.com/OWASP/Amass/...
?
It is output from docker build -t osmedeus from Dockerfile from master branch repo
Same error using docker
[+] Installing amass
# github.com/OWASP/Amass/graph
/root/go/src/github.com/OWASP/Amass/graph/graph.go:93:26: not enough arguments in call to p.BuildIterator
have ()
want (context.Context)
/root/go/src/github.com/OWASP/Amass/graph/graph.go:93:37: not enough arguments in call to p.BuildIterator().Optimize
have ()
want (context.Context)
/root/go/src/github.com/OWASP/Amass/graph/graph.go:94:10: it.Close undefined (type iterator.Shape has no field or method Close)
/root/go/src/github.com/OWASP/Amass/graph/graph.go:98:8: it.Next undefined (type iterator.Shape has no field or method Next)
/root/go/src/github.com/OWASP/Amass/graph/graph.go:99:14: it.Result undefined (type iterator.Shape has no field or method Result)
/root/go/src/github.com/OWASP/Amass/graph/graph.go:451:26: not enough arguments in call to p.BuildIterator
have ()
want (context.Context)
/root/go/src/github.com/OWASP/Amass/graph/graph.go:451:37: not enough arguments in call to p.BuildIterator().Optimize
have ()
want (context.Context)
/root/go/src/github.com/OWASP/Amass/graph/graph.go:452:10: it.Close undefined (type iterator.Shape has no field or method Close)
/root/go/src/github.com/OWASP/Amass/graph/graph.go:456:8: it.Next undefined (type iterator.Shape has no field or method Next)
/root/go/src/github.com/OWASP/Amass/graph/graph.go:457:14: it.Result undefined (type iterator.Shape has no field or method Result)
/root/go/src/github.com/OWASP/Amass/graph/graph.go:457:14: too many errors
Installing amass
on the container with the default command:
root@edaa8493e2e6:/home/Osmedeus# go get -u github.com/OWASP/Amass/...
# github.com/OWASP/Amass/config
/root/go/src/github.com/OWASP/Amass/config/support.go:54:19: undefined: os.UserConfigDir
https://github.com/OWASP/Amass/issues/260
Let me know if you need anything else
What go version in that docker? Can you try to install docker from this update https://github.com/mablanco/docker-osmedeus?
What go version in that docker?
I used your docker-compose config.
root@f83ea8d32c22:/home/Osmedeus# go version
go version go1.11.6 linux/amd64
Can you try to install docker from this update https://github.com/mablanco/docker-osmedeus?
Same error during the build and manually
root@2f6ad618a4a8:/home/Osmedeus# go version
go version go1.11.6 linux/amd64
root@2f6ad618a4a8:/home/Osmedeus# go get -u github.com/OWASP/Amass/...
# github.com/OWASP/Amass/config
/root/go/src/github.com/OWASP/Amass/config/support.go:54:19: undefined: os.UserConfigDir
P.S. in your docker version unfurl
is not installed
Okay, let me ask him to update the dockerfile. Meanwhile, try to update your go version manually then install it again
This line:
wget -qO- https://raw.githubusercontent.com/udhos/update-golang/master/update-golang.sh | bash 2>/dev/null
Installs the new version in /usr/local/go/bin/
but this path in not in $PATH
: /root/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
root@1ae9cb404736:/home/Osmedeus# /usr/local/go/bin/go version
go version go1.13.3 linux/amd64
Anyway installing amass
with the new go version returns the same errors
root@1ae9cb404736:/home/Osmedeus# /usr/local/go/bin/go get -u github.com/OWASP/Amass/...
# github.com/OWASP/Amass/graph
/root/go/src/github.com/OWASP/Amass/graph/graph.go:93:26: not enough arguments in call to p.BuildIterator
have ()
want (context.Context)
/root/go/src/github.com/OWASP/Amass/graph/graph.go:93:37: not enough arguments in call to p.BuildIterator().Optimize
have ()
want (context.Context)
/root/go/src/github.com/OWASP/Amass/graph/graph.go:94:10: it.Close undefined (type iterator.Shape has no field or method Close)
/root/go/src/github.com/OWASP/Amass/graph/graph.go:98:8: it.Next undefined (type iterator.Shape has no field or method Next)
/root/go/src/github.com/OWASP/Amass/graph/graph.go:99:14: it.Result undefined (type iterator.Shape has no field or method Result)
/root/go/src/github.com/OWASP/Amass/graph/graph.go:451:26: not enough arguments in call to p.BuildIterator
have ()
want (context.Context)
/root/go/src/github.com/OWASP/Amass/graph/graph.go:451:37: not enough arguments in call to p.BuildIterator().Optimize
have ()
want (context.Context)
/root/go/src/github.com/OWASP/Amass/graph/graph.go:452:10: it.Close undefined (type iterator.Shape has no field or method Close)
/root/go/src/github.com/OWASP/Amass/graph/graph.go:456:8: it.Next undefined (type iterator.Shape has no field or method Next)
/root/go/src/github.com/OWASP/Amass/graph/graph.go:457:14: it.Result undefined (type iterator.Shape has no field or method Result)
/root/go/src/github.com/OWASP/Amass/graph/graph.go:457:14: too many errors
In install.sh
the $GO_BIN
var is set from $(which go)
that is /usr/bin/go
(old version).
Yeah, I appreciate that. I will look for another good way to install it.
Is there any news?
To install amass
:
GO111MODULE=on go get -v -u github.com/OWASP/Amass/v3/...
@edoz90 Hey, can you please share your dockerfile or docker-compose config? I'd really appreciate it.
I've just fix the install script with GO111MODULE=on
and it works fine for me. Let me know if you have any issue
Seems good to me, thank you.
I've also forced $GO_BIN
to /usr/local/go/bin/go
but we need a better way to deal with this.
I think that you can close this issue
Yeah, that's just a latest version of go, your $GO_BIN
will become normal when the script is done or when you open new terminal tab.
Hello, j3ssie I have some issues with amass during docker build
Errors log
[+] Installing Update Golang version [+] Installing amass # github.com/OWASP/Amass/graph /root/go/src/github.com/OWASP/Amass/graph/graph.go:93:26: not enough arguments in call to p.BuildIterator have () want (context.Context) /root/go/src/github.com/OWASP/Amass/graph/graph.go:93:37: not enough arguments in call to p.BuildIterator().Optimize have () want (context.Context) /root/go/src/github.com/OWASP/Amass/graph/graph.go:94:10: it.Close undefined (type iterator.Shape has no field or method Close) /root/go/src/github.com/OWASP/Amass/graph/graph.go:98:8: it.Next undefined (type iterator.Shape has no field or method Next) /root/go/src/github.com/OWASP/Amass/graph/graph.go:99:14: it.Result undefined (type iterator.Shape has no field or method Result) /root/go/src/github.com/OWASP/Amass/graph/graph.go:451:26: not enough arguments in call to p.BuildIterator have () want (context.Context) /root/go/src/github.com/OWASP/Amass/graph/graph.go:451:37: not enough arguments in call to p.BuildIterator().Optimize have () want (context.Context) /root/go/src/github.com/OWASP/Amass/graph/graph.go:452:10: it.Close undefined (type iterator.Shape has no field or method Close) /root/go/src/github.com/OWASP/Amass/graph/graph.go:456:8: it.Next undefined (type iterator.Shape has no field or method Next) /root/go/src/github.com/OWASP/Amass/graph/graph.go:457:14: it.Result undefined (type iterator.Shape has no field or method Result) /root/go/src/github.com/OWASP/Amass/graph/graph.go:457:14: too many errors [+] Installing subfinder [+] Installing gobuster