"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "modules/client.go" between
hugo-0.80.0.tar.gz and hugo-0.81.0.tar.gz

About: Hugo is a static site generator that takes a source directory of Markdown files and templates and uses these as input to create a complete website (written in Go).

client.go  (hugo-0.80.0):client.go  (hugo-0.81.0)
skipping to change at line 240 skipping to change at line 240
if !c.shouldVendor(t.Path()) { if !c.shouldVendor(t.Path()) {
continue continue
} }
if !t.IsGoMod() && !t.Vendor() { if !t.IsGoMod() && !t.Vendor() {
// We currently do not vendor components living in the // We currently do not vendor components living in the
// theme directory, see https://github.com/gohugoio/hugo/ issues/5993 // theme directory, see https://github.com/gohugoio/hugo/ issues/5993
continue continue
} }
// See https://github.com/gohugoio/hugo/issues/8239
// This is an error situation. We need something to vendor.
if t.Mounts() == nil {
return errors.Errorf("cannot vendor module %q, need at le
ast one mount", t.Path())
}
fmt.Fprintln(&modulesContent, "# "+t.Path()+" "+t.Version()) fmt.Fprintln(&modulesContent, "# "+t.Path()+" "+t.Version())
dir := t.Dir() dir := t.Dir()
for _, mount := range t.Mounts() { for _, mount := range t.Mounts() {
sourceFilename := filepath.Join(dir, mount.Source) sourceFilename := filepath.Join(dir, mount.Source)
targetFilename := filepath.Join(vendorDir, t.Path(), moun t.Source) targetFilename := filepath.Join(vendorDir, t.Path(), moun t.Source)
fi, err := c.fs.Stat(sourceFilename) fi, err := c.fs.Stat(sourceFilename)
if err != nil { if err != nil {
return errors.Wrap(err, "failed to vendor module" ) return errors.Wrap(err, "failed to vendor module" )
 End of changes. 1 change blocks. 
0 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)