Class GoMod

  • All Implemented Interfaces:

    
    public final class GoMod
    extends PackageManager
                        

    The Go Modules package manager for Go. Also see the usage and troubleshooting guide (https://github.com/golang/go/wiki/Modules).

    Note: The file go.sum is not a lockfile as Go modules already allows for reproducible builds without that file. Thus, no logic for handling the AnalyzerConfiguration.allowDynamicVersions is needed.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public final class GoMod.Factory
    • Constructor Summary

      Constructors 
      Constructor Description
      GoMod(String name, File analysisRoot, AnalyzerConfiguration analyzerConfig, RepositoryConfiguration repoConfig)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      List<File> mapDefinitionFiles(List<File> definitionFiles)
      List<ProjectAnalyzerResult> resolveDependencies(File definitionFile, Map<String, String> labels)
      • Methods inherited from class org.ossreviewtoolkit.analyzer.PackageManager

        afterResolution, beforeResolution, findPackageManagerDependencies, getAnalysisRoot, getAnalyzerConfig, getExcludes, getManagerName, getProjectType, getRepoConfig, resolveDependencies
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait