Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for modFileIsDirty (0.57 sec)

  1. src/cmd/go/internal/modload/modfile.go

    		i.exclude[x.Mod] = true
    	}
    
    	return i
    }
    
    // modFileIsDirty reports whether the go.mod file differs meaningfully
    // from what was indexed.
    // If modFile has been changed (even cosmetically) since it was first read,
    // modFile.Cleanup must be called before modFileIsDirty.
    func (i *modFileIndex) modFileIsDirty(modFile *modfile.File) bool {
    	if i == nil {
    		return modFile != nil
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 26 17:53:40 UTC 2023
    - 26.7K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modload/init.go

    	if err != nil {
    		if errors.Is(err, errNoChange) {
    			return nil
    		}
    		return err
    	}
    
    	index := MainModules.GetSingleIndexOrNil()
    	dirty := index.modFileIsDirty(modFile)
    	if dirty && cfg.BuildMod != "mod" {
    		// If we're about to fail due to -mod=readonly,
    		// prefer to report a dirty go.mod over a dirty go.sum
    		return errGoModDirty
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:36:30 UTC 2024
    - 69.8K bytes
    - Viewed (0)
Back to top