403Webshell
Server IP : 217.160.0.212  /  Your IP : 216.73.216.141
Web Server : Apache
System : Linux www 6.18.51-i1-ampere #1196 SMP Fri Sep 11 20:43:55 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_run_issue52331.txt
# Regression test for https://go.dev/issue/52331: 'go run -mod=mod'
# failed to write go.mod and go.sum with the resolved dependencies.

[short] skip

! go run main.go
# stderr '^main\.go:6:2: no required module provides package example\.com/version; to add it:\n\tgo get example\.com/version\n\z'

go run -mod=mod main.go
cmp go.mod go.mod.want
grep -count=1 '^example\.com/version v1.1.0 h1:' go.sum
grep -count=1 '^example\.com/version v1.1.0/go.mod h1:' go.sum

-- go.mod --
module example

go 1.17
-- go.mod.want --
module example

go 1.17

require example.com/version v1.1.0 // indirect
-- main.go --
package main

import (
	"fmt"

	"example.com/version"
)

func main() {
	fmt.Println(version.V)
}

Youez - 2016 - github.com/yon3zu
LinuXploit