Server : LiteSpeed System : Linux in-mum-web1333.main-hosting.eu 4.18.0-553.37.1.lve.el8.x86_64 #1 SMP Mon Feb 10 22:45:17 UTC 2025 x86_64 User : u141265441 ( 141265441) PHP Version : 8.4.3 Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail Directory : /proc/self/root/opt/golang/1.22.0/src/cmd/go/testdata/script/ |
env GO111MODULE=on env GOPROXY=direct env GOSUMDB=off # Testing that a pseudo-version is based on the semantically-latest # prefixed tag in any commit that is a parent of the commit supplied # to 'go get', when using a repo with go.mod in a sub directory. [short] skip [!git] skip # For this test repository go.mod resides in sub/ (only): # master is not tagged # tag v0.2.0 is most recent tag before master # tag sub/v0.0.10 is most recent tag before v0.2.0 # # The pseudo-version is based on sub/v0.0.10, since v0.2.0 doesn't # contain the prefix. go get vcs-test.golang.org/git/prefixtagtests.git/sub go list -m all stdout '^vcs-test.golang.org/git/prefixtagtests.git/sub v0.0.10$' go get -u vcs-test.golang.org/git/prefixtagtests.git/sub@master go list -m all stdout '^vcs-test.golang.org/git/prefixtagtests.git/sub v0.0.11-0\.' -- go.mod -- module x go 1.12 -- x.go -- package x import _ "vcs-test.golang.org/prefixtagtests.git/sub" -- gen_prefixtagtests.sh -- #!/bin/bash # This is not part of the test. # Run this to generate and update the repository on vcs-test.golang.org. set -euo pipefail cd "$(dirname "$0")" rm -rf prefixtagtests mkdir prefixtagtests cd prefixtagtests git init mkdir sub echo module vcs-test.golang.org/git/prefixtagtests.git/sub >sub/go.mod echo package sub >sub/sub.go git add sub git commit -m 'create module sub' for i in v0.1.0 sub/v0.0.9 sub/v0.0.10 v0.2.0; do echo $i >status git add status git commit -m $i git tag $i done echo 'after last tag' >status git add status git commit -m 'after last tag' zip -r ../prefixtagtests.zip . gsutil cp ../prefixtagtests.zip gs://vcs-test/git/prefixtagtests.zip