Skip to content

Commit 4eec586

Browse files
authored
feat: expose the bin directory to packages (#339)
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent 68a958e commit 4eec586

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ Package manifest files are evaluated as a Go template before being parsed as YAM
257257
| `.Package.Version` | Package version |
258258
| `.Package.Options` | Provided package options |
259259
| `.Paths` | |
260+
| `.Paths.BinDir` | Binary dir for package |
260261
| `.Paths.CacheDir` | Cache dir for package |
261262
| `.Paths.ContextDir` | Context dir for package |
262263
| `.Paths.DataDir` | Data dir for package |

pkgmgr/package.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ func (p Package) install(
135135
"Options": opts,
136136
},
137137
"Paths": map[string]string{
138+
"BinDir": cfg.BinDir,
138139
"CacheDir": pkgCacheDir,
139140
"ContextDir": pkgContextDir,
140141
"DataDir": pkgDataDir,

0 commit comments

Comments
 (0)