Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 56 for goFiles (0.21 sec)

  1. src/cmd/go/internal/fix/fix.go

    		if modload.Enabled() && pkg.Module != nil && !pkg.Module.Main {
    			if !printed {
    				fmt.Fprintf(os.Stderr, "go: not fixing packages in dependency modules\n")
    				printed = true
    			}
    			continue
    		}
    		// Use pkg.gofiles instead of pkg.Dir so that
    		// the command only applies to this package,
    		// not to packages in subdirectories.
    		files := base.RelPaths(pkg.InternalAllGoFiles())
    		goVersion := ""
    		if pkg.Module != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:52:29 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/mod_gobuild_import.txt

    		log.Fatal(err)
    	}
    	if p1.Dir != p2.Dir {
    		log.Fatalf("different packages loaded with relative and absolute paths:\n\t%s\n\t%s", p1.Dir, p2.Dir)
    	}
    
    	fmt.Printf("%s\n%s\n", p1.Dir, strings.Join(p1.GoFiles, " "))
    }
    
    -- testfindonly/x.go --
    package main
    
    import (
    	"fmt"
    	"go/build"
    	"os"
    )
    
    func main() {
    	p, err := build.Import(os.Args[1], os.Args[2], build.FindOnly)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:18:16 UTC 2022
    - 3K bytes
    - Viewed (0)
  3. src/go/types/gotype.go

    	if _, nogo := err.(*build.NoGoError); err != nil && !nogo {
    		return nil, err
    	}
    
    	if *xtestFiles {
    		return parseFiles(dir, pkginfo.XTestGoFiles)
    	}
    
    	filenames := append(pkginfo.GoFiles, pkginfo.CgoFiles...)
    	if *testFiles {
    		filenames = append(filenames, pkginfo.TestGoFiles...)
    	}
    	return parseFiles(dir, filenames)
    }
    
    func getPkgFiles(args []string) ([]*ast.File, error) {
    	if len(args) == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 17:59:44 UTC 2022
    - 8.3K bytes
    - Viewed (0)
  4. src/runtime/align_test.go

    	ctxt := build.Default
    	ctxt.CgoEnabled = true
    	pkg, err := ctxt.ImportDir(dir, 0)
    	if err != nil {
    		t.Fatalf("can't find buildable files: %v", err)
    	}
    	return pkg.GoFiles
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 08 14:52:12 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  5. src/go/internal/srcimporter/srcimporter.go

    		if p.packages[bp.ImportPath] == &importing {
    			p.packages[bp.ImportPath] = nil
    		}
    	}()
    
    	var filenames []string
    	filenames = append(filenames, bp.GoFiles...)
    	filenames = append(filenames, bp.CgoFiles...)
    
    	files, err := p.parseFiles(bp.Dir, filenames)
    	if err != nil {
    		return nil, err
    	}
    
    	// type-check package files
    	var firstHardErr error
    	conf := types.Config{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 23 18:54:32 UTC 2022
    - 8.2K bytes
    - Viewed (0)
  6. cmd/import-boss/main_test.go

    		}
    	}
    }
    
    func TestPackageDir(t *testing.T) {
    	cases := []struct {
    		input  *packages.Package
    		expect string
    	}{{
    		input: &packages.Package{
    			PkgPath:      "example.com/foo/bar/qux",
    			GoFiles:      []string{"/src/prj/file.go"},
    			IgnoredFiles: []string{"/otherdir/file.go"},
    		},
    		expect: filepath.Clean("/src/prj"),
    	}, {
    		input: &packages.Package{
    			PkgPath:      "example.com/foo/bar/qux",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 12:36:49 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  7. src/cmd/go/internal/modindex/index_test.go

    	p := importRaw(path, ".")
    
    	wantFiles := []string{"a.syso", "b.go", "c.c"}
    
    	var gotFiles []string
    	for i := range p.sourceFiles {
    		gotFiles = append(gotFiles, p.sourceFiles[i].name)
    	}
    
    	if !reflect.DeepEqual(gotFiles, wantFiles) {
    		t.Errorf("names of files in importRaw(testdata/ignore_non_source): got %v; want %v",
    			gotFiles, wantFiles)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 28 23:35:08 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  8. src/runtime/env_plan9.go

    		env := make([]byte, len(name)+r)
    		copy(env, name)
    		copy(env[len(name):], buf[:r])
    		envs = append(envs, string(env))
    	})
    }
    
    // dofiles reads the directory opened with file descriptor fd, applying function f
    // to each filename in it.
    //
    //go:nosplit
    func dofiles(dirfd int32, f func([]byte)) {
    	dirbuf := new([dirBufSize]byte)
    
    	var off int64 = 0
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 26 02:39:39 UTC 2022
    - 3K bytes
    - Viewed (0)
  9. platforms/software/maven/src/integTest/groovy/org/gradle/api/publish/maven/MavenPublishJavaPlatformIntegTest.groovy

            then:
            javaPlatform.assertPublished()
            javaPlatform.assertNoDependencies()
    
            and:
            resolveArtifacts(javaPlatform) { noFiles() }
            resolveApiArtifacts(javaPlatform) { noFiles() }
            resolveRuntimeArtifacts(javaPlatform) { noFiles() }
        }
    
        def "can publish java-platform with constraints"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 8.6K bytes
    - Viewed (0)
  10. platforms/core-execution/workers/src/main/java/org/gradle/workers/internal/WorkerDaemonStarter.java

                builder.applicationClasspath(classPathRegistry.getClassPath("MINIMUM_WORKER_RUNTIME").getAsFiles());
                builder.useApplicationClassloaderOnly();
                builder.applicationClasspath(toFiles(flatClassLoaderStructure.getSpec()));
            } else {
                builder.applicationClasspath(classPathRegistry.getClassPath("CORE_WORKER_RUNTIME").getAsFiles());
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 19 14:39:33 UTC 2024
    - 4.5K bytes
    - Viewed (0)
Back to top