• Kirill Smelkov's avatar
    error/mypkgname: Fix for a package living under dotted prefix · 36da74e6
    Kirill Smelkov authored
    In 28986e0e (Rewrite in Go) I've added mypkgname() with comment that go
    escapes all '.' in function name with %2e. That turned out to be not
    true: Go escapes only dots in last component after last slash, e.g.
    
        lab.nexedi.com/kirr/git-backup/package%2ename.Function
        lab.nexedi.com/kirr/git-backup/pkg2.qqq/name%2ezzz.Function
    
    Correct mypkgname() accordingly.
    
    Noted while trying to run git-backup in a GOPATH root, not as
    standalone.
    36da74e6
error.go 6.48 KB