Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for EnterModule (0.1 sec)

  1. src/cmd/go/internal/workcmd/sync.go

    	var goV string
    	for _, m := range mms.Versions() {
    		if mms.ModRoot(m) == "" && m.Path == "command-line-arguments" {
    			// This is not a real module.
    			// TODO(#49228): Remove this special case once the special
    			// command-line-arguments module is gone.
    			continue
    		}
    
    		// Use EnterModule to reset the global state in modload to be in
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jun 03 21:13:11 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modload/init.go

    	// the modRoots of the main modules.
    	// modRoots != nil implies len(modRoots) > 0
    	modRoots []string
    	gopath   string
    )
    
    // EnterModule resets MainModules and requirements to refer to just this one module.
    func EnterModule(ctx context.Context, enterModroot string) {
    	MainModules = nil // reset MainModules
    	requirements = nil
    	workFilePath = "" // Force module mode
    	modfetch.Reset()
    
    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