Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 365 for gopark (0.57 sec)

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

    # Issue 46119
    
    # When a module is inside a GOPATH workspace, Package.Root should be set to
    # Module.Dir instead of $GOPATH/src.
    
    env GOPATH=$WORK/tmp
    cd $WORK/tmp/src/test
    
    go list -f {{.Root}}
    stdout ^$PWD$
    
    # Were we really inside a GOPATH workspace?
    env GO111MODULE=off
    go list -f {{.Root}}
    stdout ^$WORK/tmp$
    
    -- $WORK/tmp/src/test/go.mod --
    module test
    
    -- $WORK/tmp/src/test/main.go --
    package main
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 14 16:15:28 UTC 2021
    - 421 bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/InterruptibleTask.java

             * protect ourselves from this, we park ourselves and tell our interrupter that we did so.
             */
            if (state == PARKED || compareAndSet(state, PARKED)) {
              // Interrupting Cow Says:
              //  ______
              // < Park >
              //  ------
              //        \   ^__^
              //         \  (oo)\_______
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Sep 29 21:34:48 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/mod_enabled.txt

    env GO111MODULE=auto
    
    cd $GOPATH/src/x/y/z
    go env GOMOD
    stdout $GOPATH[/\\]src[/\\]x[/\\]y[/\\]z[/\\]go.mod
    go list -m -f {{.GoMod}}
    stdout $GOPATH[/\\]src[/\\]x[/\\]y[/\\]z[/\\]go.mod
    
    cd $GOPATH/src/x/y/z/w
    go env GOMOD
    stdout $GOPATH[/\\]src[/\\]x[/\\]y[/\\]z[/\\]go.mod
    
    cd $GOPATH/src/x/y
    go env GOMOD
    ! stdout .
    
    cd $GOPATH/foo
    go env GOMOD
    stdout foo[/\\]go.mod
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 21 01:30:48 UTC 2020
    - 1.7K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/list_symlink_vendor_issue15201.txt

    env GO111MODULE=off
    
    mkdir $WORK/tmp/gopath/src/x/y/_vendor/src/x
    symlink $WORK/tmp/gopath/src/x/y/_vendor/src/x/y -> ../../..
    mkdir $WORK/tmp/gopath/src/x/y/_vendor/src/x/y/w
    cp w.go $WORK/tmp/gopath/src/x/y/w/w.go
    symlink $WORK/tmp/gopath/src/x/y/w/vendor -> ../_vendor/src
    mkdir $WORK/tmp/gopath/src/x/y/_vendor/src/x/y/z
    cp z.go $WORK/tmp/gopath/src/x/y/z/z.go
    
    env GOPATH=$WORK/tmp/gopath/src/x/y/_vendor${:}$WORK/tmp/gopath
    cd $WORK/tmp/gopath/src
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 17 13:25:29 UTC 2020
    - 543 bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/README

    a small script engine configured in ../../script_test.go (not the system shell).
    
    The scripts' supporting files are unpacked relative to $GOPATH/src
    (aka $WORK/gopath/src) and then the script begins execution in that directory as
    well. Thus the example above runs in $WORK/gopath/src with GOPATH=$WORK/gopath
    and $WORK/gopath/src/hello.go containing the listed contents.
    
    Each line of a script is parsed into a sequence of space-separated command
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  6. src/cmd/go/internal/modload/init.go

    func FindGoWork(wd string) string {
    	if RootMode == NoRoot {
    		return ""
    	}
    
    	switch gowork := cfg.Getenv("GOWORK"); gowork {
    	case "off":
    		return ""
    	case "", "auto":
    		return findWorkspaceFile(wd)
    	default:
    		if !filepath.IsAbs(gowork) {
    			base.Fatalf("go: invalid GOWORK: not an absolute path")
    		}
    		return gowork
    	}
    }
    
    // WorkFilePath returns the absolute path of the go.work file, or "" if not in
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:36:30 UTC 2024
    - 69.8K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/list_symlink_internal.txt

    [!symlink] skip
    env GO111MODULE=off
    
    mkdir $WORK/tmp/gopath/src/dir1/internal/v
    cp p.go $WORK/tmp/gopath/src/dir1/p.go
    cp v.go $WORK/tmp/gopath/src/dir1/internal/v/v.go
    symlink $WORK/tmp/symdir1 -> $WORK/tmp/gopath/src/dir1
    env GOPATH=$WORK/tmp/gopath
    cd $WORK/tmp/symdir1
    go list -f '{{.Root}}' .
    stdout '^'$WORK/tmp/gopath'$'
    
    # All of these should succeed, not die in internal-handling code.
    go run p.go &
    go build &
    go install &
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 17 13:25:29 UTC 2020
    - 529 bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/list_gofile_in_goroot.txt

    go list .
    [!GOOS:windows] stdout ^_$WORK/goroot/src$
    [GOOS:windows] stdout goroot/src$
    
    # switch to GOPATH/src
    cd $GOPATH/src
    
    # GO111MODULE=off,GOPATH
    env GO111MODULE=off
    go list ./...
    [!GOOS:windows] stdout ^_$WORK/gopath/src$
    [GOOS:windows] stdout gopath/src$
    
    go list all
    ! stdout gopath/src
    
    -- $WORK/goroot/src/go.mod --
    module std
    
    go 1.14
    -- $WORK/goroot/src/foo.go --
    package foo
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/vendor_test_issue11864.txt

    package t
    
    -- $GOPATH/src/github.com/rsc/go-get-issue-11864/tx/tx_test.go --
    package tx_test
    
    import _ "vendor.org/p"
    import _ "vendor.org/p1"
    import "testing"
    
    func TestNop(t *testing.T) {}
    
    -- $GOPATH/src/github.com/rsc/go-get-issue-11864/tx/tx.go --
    package tx
    
    -- $GOPATH/src/github.com/rsc/go-get-issue-11864/vendor/vendor.org/p1/p1.go --
    package p1 // import "vendor.org/p1"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 14:41:02 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/mod_download_partial.txt

    # if there is an error extracting the zip file.
    rm $GOPATH/pkg/mod/rsc.io/quote@v1.5.2
    cp empty $GOPATH/pkg/mod/cache/download/rsc.io/quote/@v/v1.5.2.zip
    ! go mod download
    stderr 'not a valid zip file'
    ! exists $GOPATH/pkg/mod/rsc.io/quote@v1.5.2
    ! exists $GOPATH/pkg/mod/cache/download/rsc.io/quote/@v/v1.5.2.partial
    
    -- go.mod --
    module m
    
    go 1.14
    
    require rsc.io/quote v1.5.2
    
    -- use.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 10 19:08:19 UTC 2022
    - 2.1K bytes
    - Viewed (0)
Back to top