Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 54 for GoFiles (0.44 sec)

  1. src/cmd/go/testdata/script/list_constraints.txt

    env GOARCH=amd64
    env CGO_ENABLED=1
    go list -f '{{range .GoFiles}}{{.}} {{end}}'
    stdout '^cgotag.go empty.go suffix_linux.go tag.go $'
    go list -f '{{range .CgoFiles}}{{.}} {{end}}'
    stdout '^cgoimport.go $'
    go list -f '{{range .Imports}}{{.}} {{end}}'
    stdout '^C cgoimport cgotag suffix tag $'
    
    # Disabling cgo should exclude cgo files and their imports.
    env CGO_ENABLED=0
    go list -f '{{range .GoFiles}}{{.}} {{end}}'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 04 23:54:27 UTC 2019
    - 1.7K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/list_overlay.txt

    # Overlay in an existing directory
    go list -overlay overlay.json  -f '{{.GoFiles}}' .
    stdout '^\[f.go\]$'
    
    # Overlays in a non-existing directory
    go list -overlay overlay.json -f '{{.GoFiles}}' ./dir
    stdout '^\[g.go\]$'
    
    # Overlays in an existing directory with already existing files
    go list -overlay overlay.json -f '{{.GoFiles}}' ./dir2
    stdout '^\[h.go i.go\]$'
    
    # Overlay that removes a file from a directory
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 12 21:13:04 UTC 2020
    - 1.3K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/mod_build_tags.txt

    # golang.org/issue/24053.
    
    env GO111MODULE=on
    
    cd x
    ! go list -f {{.GoFiles}}
    stderr 'build constraints exclude all Go files'
    
    go list -f {{.GoFiles}} -tags tag1
    stdout '\[x.go\]'
    
    go list -f {{.GoFiles}} -tags tag2
    stdout '\[y\.go\]'
    
    go list -f {{.GoFiles}} -tags 'tag1 tag2'
    stdout '\[x\.go y\.go\]'
    
    go list -f {{.GoFiles}} -tags tag1,tag2 # commas allowed as of Go 1.13
    stdout '\[x\.go y\.go\]'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 24 14:25:19 UTC 2019
    - 538 bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/list_load_err.txt

    [cgo] stdout m/want
    
    
    # go list -e should include files with errors in GoFiles, TestGoFiles, and
    # other lists, assuming they match constraints.
    # Verifies golang.org/issue/39986
    go list -e -f '{{range .GoFiles}}{{.}},{{end}}' ./scan
    stdout '^good.go,scan.go,$'
    
    go list -e -f '{{range .GoFiles}}{{.}},{{end}}' ./multi
    stdout '^a.go,b.go,$'
    
    go list -e -f '{{range .GoFiles}}{{.}},{{end}}' ./constraint
    stdout '^good.go,$'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 17 21:46:33 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/mod_symlink_dotgo.txt

    env GO111MODULE=on
    [!symlink] skip
    
    symlink dir.go -> dir
    
    # Issue #39841: symlinks to directories should be ignored, not treated as source files.
    go list -f '{{range .GoFiles}}{{.}}{{"\n"}}{{end}}' .
    stdout 'p\.go$'
    ! stdout 'dir\.go$'
    
    -- go.mod --
    module example.com
    go 1.15
    -- p.go --
    package p
    -- dir/README.txt --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 25 03:29:25 UTC 2020
    - 372 bytes
    - Viewed (0)
  6. src/cmd/go/internal/load/pkg_test.go

    			pkg.ImportPath = tt.in
    			pkg.GoFiles = tt.files
    			pkg.Internal.CmdlineFiles = len(tt.files) > 0
    			gotMod := pkg.DefaultExecName()
    			if gotMod != tt.wantMod {
    				t.Errorf("pkg.DefaultExecName with ImportPath = %q in module mode = %v; want %v", tt.in, gotMod, tt.wantMod)
    			}
    		}
    		{
    			cfg.ModulesEnabled = false
    			pkg := new(Package)
    			pkg.ImportPath = tt.in
    			pkg.GoFiles = tt.files
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 09 14:05:53 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  7. src/cmd/go/internal/vet/vet.go

    		if err != nil {
    			base.Errorf("%v", err)
    			continue
    		}
    		if len(ptest.GoFiles) == 0 && len(ptest.CgoFiles) == 0 && pxtest == nil {
    			base.Errorf("go: can't vet %s: no Go files in %s", p.ImportPath, p.Dir)
    			continue
    		}
    		if len(ptest.GoFiles) > 0 || len(ptest.CgoFiles) > 0 {
    			root.Deps = append(root.Deps, b.VetAction(work.ModeBuild, work.ModeBuild, ptest))
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 19:23:42 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/list_json_fields.txt

    cmp stdout want-non-json.txt
    
    # Test -json=<field> keeps only that field.
    go list -json=Name
    cmp stdout want-json-name.txt
    
    # Test -json=<field> with multiple fields.
    go list -json=ImportPath,Name,GoFiles,Imports
    cmp stdout want-json-multiple.txt
    
    # Test -json=<field> with Deps outputs the Deps field.
    go list -json=Deps
    stdout '"Deps": \['
    stdout '"errors",'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 23 15:24:16 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  9. src/go/build/build_test.go

    		t.Errorf("pkg.Name = %q; want %q", pkg.Name, wantName)
    	}
    
    	if wantGoFiles := []string{"file.go", "file_appengine.go"}; !reflect.DeepEqual(pkg.GoFiles, wantGoFiles) {
    		t.Errorf("pkg.GoFiles = %q; want %q", pkg.GoFiles, wantGoFiles)
    	}
    
    	if wantInvalidFiles := []string{"file_appengine.go"}; !reflect.DeepEqual(pkg.InvalidGoFiles, wantInvalidFiles) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 15 16:24:01 UTC 2023
    - 23.9K bytes
    - Viewed (0)
  10. src/cmd/go/internal/load/test.go

    		ptest = new(Package)
    		*ptest = *p
    		ptest.Error = ptestErr
    		ptest.Incomplete = incomplete
    		ptest.ForTest = p.ImportPath
    		ptest.GoFiles = nil
    		ptest.GoFiles = append(ptest.GoFiles, p.GoFiles...)
    		ptest.GoFiles = append(ptest.GoFiles, p.TestGoFiles...)
    		ptest.Target = ""
    		// Note: The preparation of the vet config requires that common
    		// indexes in ptest.Imports and ptest.Internal.RawImports
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 28.2K bytes
    - Viewed (0)
Back to top