Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for AllowMissingModuleImports (0.23 sec)

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

    //
    // This function affects the default cfg.BuildMod when outside of a module,
    // so it can only be called prior to Init.
    func AllowMissingModuleImports() {
    	if initialized {
    		panic("AllowMissingModuleImports after Init")
    	}
    	allowMissingModuleImports = true
    }
    
    // makeMainModules creates a MainModuleSet and associated variables according to
    // the given main modules.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:36:30 UTC 2024
    - 69.8K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modget/get.go

    	// what was requested.
    	modload.ExplicitWriteGoMod = true
    
    	// Allow looking up modules for import paths when outside of a module.
    	// 'go get' is expected to do this, unlike other commands.
    	modload.AllowMissingModuleImports()
    
    	// 'go get' no longer builds or installs packages, so there's nothing to do
    	// if there's no go.mod file.
    	// TODO(#40775): make modload.Init return ErrNoModRoot instead of exiting.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 18:26:32 UTC 2024
    - 66.5K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modload/load.go

    			// version specified by a new root than add a new dependency on an
    			// unrelated version.
    			continue
    		}
    
    		if !ld.ResolveMissingImports || (!HasModRoot() && !allowMissingModuleImports) {
    			// We've loaded as much as we can without resolving missing imports.
    			break
    		}
    
    		modAddedBy, err := ld.resolveMissingImports(ctx)
    		if err != nil {
    			ld.error(err)
    			break
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 84K bytes
    - Viewed (0)
Back to top