403Webshell
Server IP : 217.160.0.212  /  Your IP : 216.73.217.70
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1073854427 ( 1073854427)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/go/src/cmd/go/testdata/script/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/go/src/cmd/go/testdata/script/mod_get_issue47650.txt
# Regression test for https://go.dev/issue/47650:
# 'go get' with a pseudo-version of a non-root package within a module
# erroneously rejected the pseudo-version as invalid, because it did not fetch
# enough commit history to validate the pseudo-version base.

[short] skip 'creates and uses a git repository'
[!git] skip

env GOPRIVATE=vcs-test.golang.org

# If we request a package in a subdirectory of a module by commit hash, we
# successfully resolve it to a pseudo-version derived from a tag on the parent
# commit.
cp go.mod go.mod.orig
go get -x vcs-test.golang.org/git/issue47650.git/cmd/issue47650@21535ef346c3
stderr '^go: added vcs-test.golang.org/git/issue47650.git v0.1.1-0.20210811175200-21535ef346c3$'

# Explicitly requesting that same version should succeed, fetching additional
# history for the requested commit as needed in order to validate the
# pseudo-version base.
go clean -modcache
cp go.mod.orig go.mod
go get -x vcs-test.golang.org/git/issue47650.git/cmd/issue47650@v0.1.1-0.20210811175200-21535ef346c3
stderr '^go: added vcs-test.golang.org/git/issue47650.git v0.1.1-0.20210811175200-21535ef346c3$'

-- go.mod --
module example

go 1.20

Youez - 2016 - github.com/yon3zu
LinuXploit