mirror of
https://github.com/packwiz/packwiz.git
synced 2025-10-14 06:54:32 +02:00
Remove pack-root, fix serve command (fixes #39)
index.toml is now the pack root - if you want to replicate what the pack-root option would have provided, just move your index.toml (and update the path in pack.toml)
This commit is contained in:
@@ -166,11 +166,7 @@ func (in *Index) updateFile(path string) error {
|
||||
}
|
||||
|
||||
func (in Index) GetPackRoot() string {
|
||||
packRoot := viper.GetString("pack-root")
|
||||
if len(packRoot) == 0 {
|
||||
packRoot = filepath.Dir(in.indexFile)
|
||||
}
|
||||
return packRoot
|
||||
return filepath.Dir(in.indexFile)
|
||||
}
|
||||
|
||||
// Refresh updates the hashes of all the files in the index, and adds new files to the index
|
||||
|
Reference in New Issue
Block a user