I think I have found a bug in the golang portgroup, and I think I have an
idea on how to fix it, but I'm not sure how to test such a modification.
For those interested, it's in go._translate_package_id. If I have a
package ID
github.com/jmespath/go-jmespath/internal/testify, the *subproject* is
internal/testify, not internal. But the line `set subproject [lindex
${parts} 3]` will *only* grab `internal`.
So this:
```tcl
set parts [split ${package_id} /]
set domain [lindex ${parts} 0]
set author [lindex ${parts} 1]
set project [lindex ${parts} 2]
# possibly empty
set subproject [lindex ${parts} 3]
```
Should probably be this:
```tcl
set parts [split $package_id /]
set domain [lindex $parts 0]
set author [lindex $parts 1]
set project [lindex $parts 2]
# Join the remaining parts to get the full subproject path
if {[llength $parts] > 3} {
set subproject [join [lrange $parts 3 end] /]
} else {
set subproject ""
}
```
-a
--
Austin Ziegler • [email protected] • [email protected]
http://www.halostatue.ca/ • http://twitter.com/halostatue