Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for NodeLost (0.34 sec)

  1. src/cmd/go/internal/modfetch/codehost/codehost.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Package codehost defines the interface implemented by a code hosting source,
    // along with support code for use by implementations.
    package codehost
    
    import (
    	"bytes"
    	"context"
    	"crypto/sha256"
    	"fmt"
    	"io"
    	"io/fs"
    	"os"
    	"os/exec"
    	"path/filepath"
    	"strings"
    	"sync"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:50:24 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modfetch/coderepo.go

    	"cmd/go/internal/gover"
    	"cmd/go/internal/modfetch/codehost"
    
    	"golang.org/x/mod/modfile"
    	"golang.org/x/mod/module"
    	"golang.org/x/mod/semver"
    	modzip "golang.org/x/mod/zip"
    )
    
    // A codeRepo implements modfetch.Repo using an underlying codehost.Repo.
    type codeRepo struct {
    	modPath string
    
    	// code is the repository containing this module.
    	code codehost.Repo
    	// codeRoot is the import path at the root of code.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:50:24 UTC 2024
    - 38.4K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modfetch/repo.go

    	if err != nil {
    		return nil, err
    	}
    	return newCodeRepo(code, rr.Root, path)
    }
    
    func lookupCodeRepo(ctx context.Context, rr *vcs.RepoRoot) (codehost.Repo, error) {
    	code, err := codehost.NewRepo(ctx, rr.VCS.Cmd, rr.Repo)
    	if err != nil {
    		if _, ok := err.(*codehost.VCSError); ok {
    			return nil, err
    		}
    		return nil, fmt.Errorf("lookup %s: %v", rr.Root, err)
    	}
    	return code, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 16:36:19 UTC 2023
    - 15.2K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modfetch/proxy.go

    	"errors"
    	"fmt"
    	"io"
    	"io/fs"
    	"net/url"
    	"path"
    	pathpkg "path"
    	"path/filepath"
    	"strings"
    	"sync"
    	"time"
    
    	"cmd/go/internal/base"
    	"cmd/go/internal/cfg"
    	"cmd/go/internal/modfetch/codehost"
    	"cmd/go/internal/web"
    
    	"golang.org/x/mod/module"
    	"golang.org/x/mod/semver"
    )
    
    var HelpGoproxy = &base.Command{
    	UsageLine: "goproxy",
    	Short:     "module proxy protocol",
    	Long: `
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 03 15:21:05 UTC 2023
    - 13K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modfetch/coderepo_test.go

    			}
    		})
    	}
    }
    
    // fixedTagsRepo is a fake codehost.Repo that returns a fixed list of tags
    type fixedTagsRepo struct {
    	tags []string
    	codehost.Repo
    }
    
    func (ch *fixedTagsRepo) Tags(ctx context.Context, prefix string) (*codehost.Tags, error) {
    	tags := &codehost.Tags{}
    	for _, t := range ch.tags {
    		tags.List = append(tags.List, codehost.Tag{Name: t})
    	}
    	return tags, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 18 20:10:14 UTC 2023
    - 29.4K bytes
    - Viewed (0)
  6. src/cmd/go/internal/modload/build.go

    // returning either a new origin or one of its unmodified arguments.
    // If the two origins conflict including if either is nil,
    // mergeOrigin returns nil.
    func mergeOrigin(m1, m2 *codehost.Origin) *codehost.Origin {
    	if m1 == nil || m2 == nil {
    		return nil
    	}
    
    	if m2.VCS != m1.VCS ||
    		m2.URL != m1.URL ||
    		m2.Subdir != m1.Subdir {
    		return nil
    	}
    
    	merged := *m1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 16:56:39 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  7. src/cmd/go/internal/modload/query.go

    func checkReuse(ctx context.Context, m module.Version, old *codehost.Origin) error {
    	return modfetch.TryProxies(func(proxy string) error {
    		repo, err := lookupRepo(ctx, proxy, m.Path)
    		if err != nil {
    			return err
    		}
    		return checkReuseRepo(ctx, repo, m.Path, m.Version, old)
    	})
    }
    
    func checkReuseRepo(ctx context.Context, repo versionRepo, path, query string, origin *codehost.Origin) error {
    	if origin == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 11 22:29:11 UTC 2023
    - 44.7K bytes
    - Viewed (0)
  8. src/cmd/go/proxy_test.go

    	"errors"
    	"flag"
    	"fmt"
    	"internal/txtar"
    	"io"
    	"io/fs"
    	"log"
    	"net"
    	"net/http"
    	"os"
    	"path/filepath"
    	"strconv"
    	"strings"
    	"sync"
    	"testing"
    
    	"cmd/go/internal/modfetch/codehost"
    	"cmd/go/internal/par"
    
    	"golang.org/x/mod/module"
    	"golang.org/x/mod/semver"
    	"golang.org/x/mod/sumdb"
    	"golang.org/x/mod/sumdb/dirhash"
    )
    
    var (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 03 09:56:24 UTC 2023
    - 12K bytes
    - Viewed (0)
  9. src/cmd/go/internal/modcmd/download.go

    import (
    	"context"
    	"encoding/json"
    	"errors"
    	"os"
    	"runtime"
    	"sync"
    
    	"cmd/go/internal/base"
    	"cmd/go/internal/cfg"
    	"cmd/go/internal/gover"
    	"cmd/go/internal/modfetch"
    	"cmd/go/internal/modfetch/codehost"
    	"cmd/go/internal/modload"
    	"cmd/go/internal/toolchain"
    
    	"golang.org/x/mod/module"
    )
    
    var cmdDownload = &base.Command{
    	UsageLine: "go mod download [-x] [-json] [-reuse=old.json] [modules]",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 19:32:39 UTC 2023
    - 13.5K bytes
    - Viewed (0)
  10. src/cmd/go/internal/modfetch/cache.go

    	"math/rand"
    	"os"
    	"path/filepath"
    	"strconv"
    	"strings"
    	"sync"
    
    	"cmd/go/internal/base"
    	"cmd/go/internal/cfg"
    	"cmd/go/internal/gover"
    	"cmd/go/internal/lockedfile"
    	"cmd/go/internal/modfetch/codehost"
    	"cmd/go/internal/par"
    	"cmd/go/internal/robustio"
    	"cmd/internal/telemetry"
    
    	"golang.org/x/mod/module"
    	"golang.org/x/mod/semver"
    )
    
    func cacheDir(ctx context.Context, path string) (string, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 24.7K bytes
    - Viewed (0)
Back to top