mirror of
https://github.com/cbeuw/Cloak.git
synced 2026-04-25 04:25:59 +03:00
[GH-ISSUE #16] Build failes with "use of internal package not allowed" #8
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Cloak#8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Alireza2n on GitHub (Feb 24, 2019).
Original GitHub issue: https://github.com/cbeuw/Cloak/issues/16
Hi,
I am trying to build Cloak using latest source available, but no matter what I do build fails with either of these two messages:
use of internal package not allowedor
cannot find package "github.com/cbeuw/Cloak/internal/ecdh" in any of ...Any suggestions?
@cbeuw commented on GitHub (Feb 25, 2019):
Make sure you have set $GOPATH https://golang.org/doc/install#tarball
Did you use go get or git clone when you fetched this repo? If it's the latter please use go get instead
@Alireza2n commented on GitHub (Feb 27, 2019):
Hi,
Thanks for quick update.
1- GOPATH is already set.
2- Using go get:
go get github.com/cbeuw/CloakAnd output is:
package github.com/cbeuw/Cloak: no Go files in /root/go/src/github.com/cbeuw/Cloak@cbeuw commented on GitHub (Mar 1, 2019):
Did you build with Makefile?
When do you get the first error message and when do you get the second one?
cd into $GOPATH/src/github.com/cbeuw/Cloak/internal/ecdh, is there anything in this folder?
@Alireza2n commented on GitHub (Mar 16, 2019):
Yes, I have used make file.
I have simply used
make serverand when failed I triedgo get github.com/cbeuw/Cloak.Yep:
ls $GOPATH/src/github.com/cbeuw/Cloak/internal/ecdhcurve25519.goHere is what I've done:
1-
cd $GOPATH/src/github.com/cbeuw2-
git clone https://github.com/cbeuw/Cloak.git3-
make serverAnd output was:
@cbeuw commented on GitHub (Mar 16, 2019):
Ah I see, it's simply due to the dependencies not present. You need to do
go get github.com/boltdb/bolt,go get github.com/juju/ratelimitandgo get golang.org/x/crypto/curve25519to fetch them.@cbeuw commented on GitHub (Mar 16, 2019):
I have updated README to make clear the need of dependencies