-
Notifications
You must be signed in to change notification settings - Fork 1k
Got '*pkgtree.NonCanonicalImportRoot' error when porting to dep #1742
Comments
I compiled the
I think it clearly shows the comments have become the canonical path. |
Created a PR #1743 to fix this issue. |
Signed-off-by: Tao Wang <twang2218@gmail.com>
Signed-off-by: Tao Wang <twang2218@gmail.com>
Found a workaround for this issue. Replace: /*
import (
"fmt"
)
...
*/ with /**
import (
"fmt"
)
...
*/ Use the double star, |
* Replace '/* import' with '/** import' to workaround golang/dep#1742. Signed-off-by: Tao Wang <twang2218@gmail.com>
What version of
dep
are you using (dep version
)?What
dep
command did you run?After I examine the package
github.com/megamsys/go-radosgw/api
, I found one potential reason caused this error, https://github.com/megamsys/go-radosgw/blob/master/api/helpers_test.go#L3:And then I checked the
gps/pkgtree/pkgtree.go
'sfindImportComment()
function, I think it might be a bug:https://github.com/golang/dep/blob/master/gps/pkgtree/pkgtree.go#L344-L362
I think:
should be
The text was updated successfully, but these errors were encountered: