PackageAttributePath returns the short attribute path for a package which does not include packages/legacyPackages or the system name.
()
| 342 | // PackageAttributePath returns the short attribute path for a package which |
| 343 | // does not include packages/legacyPackages or the system name. |
| 344 | func (p *Package) PackageAttributePath() (string, error) { |
| 345 | if err := p.resolve(); err != nil { |
| 346 | return "", err |
| 347 | } |
| 348 | return p.installable.AttrPath, nil |
| 349 | } |
| 350 | |
| 351 | // FullPackageAttributePath returns the attribute path for a package. It is not |
| 352 | // always normalized which means it should not be used to compare packages. |