Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for SearchPaths (0.13 sec)

  1. pkg/credentialprovider/config.go

    }
    
    // ReadDockercfgFile attempts to read a legacy dockercfg file from the given paths.
    // if searchPaths is empty, the default paths are used.
    func ReadDockercfgFile(searchPaths []string) (cfg DockerConfig, err error) {
    	if len(searchPaths) == 0 {
    		searchPaths = DefaultDockercfgPaths()
    	}
    
    	for _, configPath := range searchPaths {
    		absDockerConfigFileLocation, err := filepath.Abs(filepath.Join(configPath, configFileName))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 19 15:11:57 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  2. src/go/internal/gccgoimporter/gccgoinstallation.go

    	if err != nil {
    		return
    	}
    	inst.GccVersion = strings.TrimSpace(string(stdout))
    
    	return
    }
    
    // Return the list of export search paths for this GccgoInstallation.
    func (inst *GccgoInstallation) SearchPaths() (paths []string) {
    	for _, lpath := range inst.LibPaths {
    		spath := filepath.Join(lpath, "go", inst.GccVersion)
    		fi, err := os.Stat(spath)
    		if err != nil || !fi.IsDir() {
    			continue
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 17:49:12 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  3. src/go/internal/gccgoimporter/importer.go

    	Inits []PackageInit
    }
    
    // Locate the file from which to read export data.
    // This is intended to replicate the logic in gofrontend.
    func findExportFile(searchpaths []string, pkgpath string) (string, error) {
    	for _, spath := range searchpaths {
    		pkgfullpath := filepath.Join(spath, pkgpath)
    		pkgdir, name := filepath.Split(pkgfullpath)
    
    		for _, filepath := range [...]string{
    			pkgfullpath,
    			pkgfullpath + ".gox",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 18:41:18 UTC 2020
    - 6.8K bytes
    - Viewed (0)
Back to top