Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 87 for errNotExist (0.27 sec)

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

    	mg, err := rs.Graph(ctx)
    	if err != nil {
    		return module.Version{}, err
    	}
    
    	candidates, err := QueryPackages(ctx, path, "latest", mg.Selected, CheckAllowed)
    	if err != nil {
    		if errors.Is(err, fs.ErrNotExist) {
    			// Return "cannot find module providing package […]" instead of whatever
    			// low-level error QueryPattern produced.
    			return module.Version{}, &ImportMissingError{Path: path, QueryErr: err}
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 15:21:14 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/build/relnote/relnote.go

    			bad)
    	}
    	return dirs[0], nil
    }
    
    func checkFragmentFile(fsys fs.FS, filename string) error {
    	f, err := fsys.Open(filename)
    	if err != nil {
    		if errors.Is(err, fs.ErrNotExist) {
    			err = errors.New("File does not exist. Every API change must have a corresponding release note file.")
    		}
    		return err
    	}
    	defer f.Close()
    	data, err := io.ReadAll(f)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modfetch/codehost/git_test.go

    		},
    		{
    			repo: gitrepo1,
    			rev:  "v2",
    			file: "another.txt",
    			data: "another\n",
    		},
    		{
    			repo: gitrepo1,
    			rev:  "v2.3.4",
    			file: "another.txt",
    			err:  fs.ErrNotExist.Error(),
    		},
    	} {
    		t.Run(path.Base(tt.repo)+"/"+tt.rev+"/"+tt.file, runTest(tt))
    		if tt.repo == gitrepo1 {
    			for _, tt.repo = range altRepos() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 19:46:23 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  4. src/embed/embed.go

    func (f FS) Open(name string) (fs.File, error) {
    	file := f.lookup(name)
    	if file == nil {
    		return nil, &fs.PathError{Op: "open", Path: name, Err: fs.ErrNotExist}
    	}
    	if file.IsDir() {
    		return &openDir{file, f.readDir(name), 0}, nil
    	}
    	return &openFile{file, 0}, nil
    }
    
    // ReadDir reads and returns the entire named directory.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:42:51 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  5. src/syscall/syscall_windows.go

    }
    
    // Errno is the Windows error number.
    //
    // Errno values can be tested against error values using [errors.Is].
    // For example:
    //
    //	_, _, err := syscall.Syscall(...)
    //	if errors.Is(err, fs.ErrNotExist) ...
    type Errno uintptr
    
    func langid(pri, sub uint16) uint32 { return uint32(sub)<<10 | uint32(pri) }
    
    // FormatMessage is deprecated (msgsrc should be uintptr, not uint32, but can
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 52.7K bytes
    - Viewed (0)
  6. pkg/credentialprovider/plugin/plugin.go

    		// LookPath() also calls os.Stat().
    		pluginBin, err := exec.LookPath(filepath.Join(pluginBinDir, provider.Name))
    		if err != nil {
    			if errors.Is(err, os.ErrNotExist) || errors.Is(err, exec.ErrNotFound) {
    				return fmt.Errorf("plugin binary executable %s did not exist", pluginBin)
    			}
    
    			return fmt.Errorf("error inspecting binary executable %s: %w", pluginBin, err)
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 05 05:07:28 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  7. src/cmd/go/internal/modfetch/codehost/vcs.go

    	unlock, err := r.mu.Lock()
    	if err != nil {
    		return nil, err
    	}
    	defer unlock()
    
    	out, err := Run(ctx, r.dir, r.cmd.readFile(rev, file, r.remote))
    	if err != nil {
    		return nil, fs.ErrNotExist
    	}
    	return out, nil
    }
    
    func (r *vcsRepo) RecentTag(ctx context.Context, rev, prefix string, allowed func(string) bool) (tag string, err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:50:24 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  8. pkg/volume/util/atomic_writer.go

    			}
    		} else {
    			err = os.Rename(newDataDirPath, dataDirPath)
    		}
    		if err != nil {
    			if err := os.Remove(newDataDirPath); err != nil && err != os.ErrNotExist {
    				klog.Errorf("%s: error removing new data dir directory %s: %v", w.logContext, newDataDirPath, err)
    			}
    			if err := os.RemoveAll(tsDir); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  9. src/syscall/exec_linux_test.go

    	// Need an ability to create a sub-cgroup.
    	subCgroup, err := os.MkdirTemp(prefix+string(bytes.TrimSpace(cg)), "subcg-")
    	if err != nil {
    		// ErrPermission or EROFS (#57262) when running in an unprivileged container.
    		// ErrNotExist when cgroupfs is not mounted in chroot/schroot.
    		if os.IsNotExist(err) || testenv.SyscallIsNotSupported(err) {
    			t.Skipf("skipping: %v", err)
    		}
    		t.Fatal(err)
    	}
    	t.Cleanup(func() { syscall.Rmdir(subCgroup) })
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  10. src/cmd/go/internal/vcs/vcs.go

    }
    
    // FromDir inspects dir and its parents to determine the
    // version control system and code repository to use.
    // If no repository is found, FromDir returns an error
    // equivalent to os.ErrNotExist.
    func FromDir(dir, srcRoot string, allowNesting bool) (repoDir string, vcsCmd *Cmd, err error) {
    	// Clean and double-check that dir is in (a subdirectory of) srcRoot.
    	dir = filepath.Clean(dir)
    	if srcRoot != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:30:18 UTC 2024
    - 46.2K bytes
    - Viewed (0)
Back to top