cmd/hopp-generate: Pass the actual directory into scroungeForPackageName
This commit is contained in:
parent
207627c428
commit
75810bfda1
@ -37,7 +37,7 @@ func main() {
|
||||
absDestination, err := filepath.Abs(destination)
|
||||
handleErr(command, 1, err)
|
||||
base := filepath.Base(absDestination)
|
||||
if scrounged, ok := scroungeForPackageName(base); ok {
|
||||
if scrounged, ok := scroungeForPackageName(filepath.Dir(absDestination)); ok {
|
||||
packageName = scrounged
|
||||
} else {
|
||||
packageName = strings.ReplaceAll(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user