Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for printVersion (0.17 sec)

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

    example.com/version
    -- $WORK/modules-bad-1.13.txt --
    # example.com/printversion v1.1.0
    example.com/printversion
    # example.com/version v1.1.0
    example.com/version
    -- $WORK/auto/vendor/example.com/printversion/go.mod --
    module example.com/printversion
    
    require example.com/version v1.0.0
    replace example.com/version v1.0.0 => ../oops v0.0.0
    exclude example.com/version v1.0.1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 15:21:14 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/mod_outside.txt

    # See mod_install_pkg_version.
    rm $GOPATH/bin
    go install example.com/printversion@v0.1.0
    exists $GOPATH/bin/printversion$GOEXE
    
    # 'go install' should fail if a package argument must be resolved to a module.
    ! go install example.com/printversion
    stderr '^go: ''go install'' requires a version when current directory is not in a module\n\tTry ''go install example.com/printversion@latest'' to install the latest version$'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 18 15:34:40 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/work_vendor_prune.txt

    package b
    
    import "example.com/q"
    
    func TestB() {
    	q.PrintVersion()
    }
    -- p/go.mod --
    module example.com/p
    
    go 1.18
    
    require example.com/q v1.0.0
    
    replace example.com/q v1.0.0 => ../q1_0_0
    replace example.com/q v1.1.0 => ../q1_1_0
    -- p/main.go --
    package main
    
    import "example.com/q"
    
    func main() {
    	q.PrintVersion()
    }
    -- q1_0_0/go.mod --
    module example.com/q
    
    go 1.18
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 11 01:59:23 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/install_modcacherw_issue64282.txt

    stderr '^flag provided but not defined: -unknownflag$'
    cp $WORK/extraneous.txt $GOPATH/pkg/mod/example.com/printversion@v0.1.0/extraneous_file.go
    go clean -modcache
    
    
    # Also try it with a 'go install' that succeeds.
    # (But skip in short mode, because linking a binary is expensive.)
    [!short] go install -modcacherw example.com/printversion@v0.1.0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 29 17:53:43 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/work_prune.txt

    package b
    
    import "example.com/q"
    
    func TestB() {
    	q.PrintVersion()
    }
    -- p/go.mod --
    module example.com/p
    
    go 1.18
    
    require example.com/q v1.0.0
    
    replace example.com/q v1.0.0 => ../q1_0_0
    replace example.com/q v1.1.0 => ../q1_1_0
    -- p/main.go --
    package main
    
    import "example.com/q"
    
    func main() {
    	q.PrintVersion()
    }
    -- q1_0_0/go.mod --
    module example.com/q
    
    go 1.18
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 14 14:30:53 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/work_vendor_prune_all.txt

    replace example.com/q v1.1.0 => ../q1_1_0
    -- p/main.go --
    package main
    
    import "example.com/q"
    
    func main() {
    	q.PrintVersion()
    }
    -- q1_0_0/go.mod --
    module example.com/q
    
    go 1.18
    -- q1_0_0/q.go --
    package q
    
    import "fmt"
    
    func PrintVersion() {
    	fmt.Println("version 1.0.0")
    }
    -- q1_0_5/go.mod --
    module example.com/q
    
    go 1.18
    
    require example.com/r v1.0.0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 11 01:59:23 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/mod_run_flags_issue64738.txt

    # Regression test for https://go.dev/issue/64738:
    # a bug in 'go run' caused flags arguments after the requested package to
    # also be parsed as cmd/go flags.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 23 18:08:32 UTC 2024
    - 211 bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/docs/userguide/authoring-builds/tasks/implementing_custom_tasks.adoc

    [.multi-language-sample]
    =====
    .app/build.gradle.kts
    [source,kotlin]
    ----
    tasks.register<PrintVersion>("printVersion") {
    
        // Configuration code
        version = project.version as String
    }
    ----
    =====
    [.multi-language-sample]
    =====
    .app/build.gradle
    [source,groovy]
    ----
    tasks.register(PrintVersion, "printVersion") {
    
        // Configuration code
        version = project.version.toString()
    }
    ----
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 05:34:54 UTC 2024
    - 37.2K bytes
    - Viewed (0)
  9. hack/get-build.sh

      echo '    - "release/latest"'
      echo '    - "ci/latest"'
      echo '  See the docs on getting builds for more information about version'
      echo '  publication.'
    }
    
    print_version=false
    
    while getopts ":vh" opt; do
      case ${opt} in
        v)
          print_version="true"
          ;;
        h)
          usage
          exit 0
          ;;
        \?)
          echo "Invalid option: -$OPTARG" >&2
          usage
          exit 1
          ;;
      esac
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 13 10:57:41 UTC 2023
    - 2.8K bytes
    - Viewed (0)
Back to top