Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestImportPackageOutsideModule (0.2 sec)

  1. src/go/build/build_test.go

    	}
    }
    
    // Check that a package is loaded in module mode if GO111MODULE=on, even when
    // no go.mod file is present. It should fail to resolve packages outside std.
    // Verifies golang.org/issue/34669.
    func TestImportPackageOutsideModule(t *testing.T) {
    	testenv.MustHaveGoBuild(t)
    
    	// Disable module fetching for this test so that 'go list' fails quickly
    	// without trying to find the latest version of a module.
    	t.Setenv("GOPROXY", "off")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 15 16:24:01 UTC 2023
    - 23.9K bytes
    - Viewed (0)
Back to top