Skip to content
This repository has been archived by the owner on Jun 5, 2020. It is now read-only.

Commit

Permalink
un-shortcut sum/map files; fix bug in sumfile writing for local replaces
Browse files Browse the repository at this point in the history
  • Loading branch information
verdverm committed Apr 18, 2020
1 parent c413650 commit 56604cd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/modder/modder_load.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,14 @@ func (mdr *Modder) LoadMetaFromFS(dir string) error {

err = mdr.LoadSumFile()
if err != nil {
return err
mdr.errors = append(mdr.errors, err)
return nil
}

err = mdr.LoadMappingsFile()
if err != nil {
return err
mdr.errors = append(mdr.errors, err)
return nil
}

return nil
Expand Down
5 changes: 5 additions & 0 deletions lib/modder/modder_write.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ func (mdr *Modder) WriteVendor() error {

// write out each dep
for _, m := range mdr.depsMap {
// XXX, this only (?) happens with local replaces with no matching require entry
if m.Version == "" {
m.Version = "v0.0.0"
}

dirhash, err := util.BillyCalcHash(m.FS)
if err != nil {
mdr.errors = append(mdr.errors, err)
Expand Down

0 comments on commit 56604cd

Please sign in to comment.