Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for GoModFile (0.1 sec)

  1. cmd/import-boss/main.go

    	"regexp"
    	"sort"
    	"strings"
    	"time"
    
    	"github.com/spf13/pflag"
    	"golang.org/x/tools/go/packages"
    	"k8s.io/klog/v2"
    	"sigs.k8s.io/yaml"
    )
    
    const (
    	rulesFileName = ".import-restrictions"
    	goModFile     = "go.mod"
    )
    
    func main() {
    	klog.InitFlags(nil)
    	pflag.CommandLine.AddGoFlagSet(flag.CommandLine)
    	pflag.Parse()
    
    	pkgs, err := loadPkgs(pflag.Args()...)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 12:36:49 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modfetch/cache.go

    	err = TryProxies(func(proxy string) (err error) {
    		data, err = Lookup(ctx, proxy, path).GoMod(ctx, rev)
    		return err
    	})
    	return data, err
    }
    
    // GoModFile is like GoMod but returns the name of the file containing
    // the cached information.
    func GoModFile(ctx context.Context, path, version string) (string, error) {
    	if !gover.ModIsValid(path, version) {
    		return "", fmt.Errorf("invalid version %q", version)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modcmd/download.go

    func DownloadModule(ctx context.Context, m *ModuleJSON) error {
    	var err error
    	_, file, err := modfetch.InfoFile(ctx, m.Path, m.Version)
    	if err != nil {
    		return err
    	}
    	m.Info = file
    	m.GoMod, err = modfetch.GoModFile(ctx, m.Path, m.Version)
    	if err != nil {
    		return err
    	}
    	m.GoModSum, err = modfetch.GoModSum(ctx, m.Path, m.Version)
    	if err != nil {
    		return err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 19:32:39 UTC 2023
    - 13.5K bytes
    - Viewed (0)
Back to top