Skip to content

Commit

Permalink
feat: expose the bin directory to packages (#339)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Gianelloni <[email protected]>
  • Loading branch information
wolf31o2 authored Jan 23, 2025
1 parent 68a958e commit 4eec586
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ Package manifest files are evaluated as a Go template before being parsed as YAM
| `.Package.Version` | Package version |
| `.Package.Options` | Provided package options |
| `.Paths` | |
| `.Paths.BinDir` | Binary dir for package |
| `.Paths.CacheDir` | Cache dir for package |
| `.Paths.ContextDir` | Context dir for package |
| `.Paths.DataDir` | Data dir for package |
Expand Down
1 change: 1 addition & 0 deletions pkgmgr/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ func (p Package) install(
"Options": opts,
},
"Paths": map[string]string{
"BinDir": cfg.BinDir,
"CacheDir": pkgCacheDir,
"ContextDir": pkgContextDir,
"DataDir": pkgDataDir,
Expand Down

0 comments on commit 4eec586

Please sign in to comment.