// updateVersionFiles updates versions.json and all existing version.go files using the given VersionEnclosure.
updateVersionFiles updates versions.json and all existing version.go files using the given VersionEnclosure.
// updateVersionFiles updates versions . json and all existing version . go files using the given VersionEnclosure .
func (r *Repository) updateVersionFiles(enc VersionEnclosure) error {
	err := r.UpdateVersionFiles(enc)
	if err != nil {
		return err
	}
	hashes, err := r.ModuleHashes(enc)
	if err != nil {
		return err
	}
	err = enc.updateHashes(hashes)
	if err != nil {
		return err
	}
	return r.Metadata.SaveEnclosure(enc)
}
func ( r * Repository ) updateVersionFiles ( enc VersionEnclosure ) error { err := r . UpdateVersionFiles ( enc ) if err != nil { return err } hashes , err := r . ModuleHashes ( enc ) if err != nil { return err } err = enc . updateHashes ( hashes ) if err != nil { return err } return r . Metadata . SaveEnclosure ( enc ) }
updateVersionFiles updates versions.json and all existing version.go files using the given VersionEnclosure.
updateVersionFiles updates versions . json and all existing version . go files using the given VersionEnclosure .
// update hashes after modifying module contents (e.g. version.go, CHANGELOG.md, and go.mod files)