Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.31
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
local /
go /
src /
cmd /
go /
internal /
modcmd /
[ HOME SHELL ]
Name
Size
Permission
Action
download.go
4.99
KB
-rw-r--r--
edit.go
12.15
KB
-rw-r--r--
graph.go
2.04
KB
-rw-r--r--
init.go
1.47
KB
-rw-r--r--
mod.go
805
B
-rw-r--r--
tidy.go
2.23
KB
-rw-r--r--
vendor.go
7.24
KB
-rw-r--r--
verify.go
2.8
KB
-rw-r--r--
why.go
3.34
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : tidy.go
// Copyright 2018 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // go mod tidy package modcmd import ( "cmd/go/internal/base" "cmd/go/internal/cfg" "cmd/go/internal/modfetch" "cmd/go/internal/modload" "cmd/go/internal/work" "golang.org/x/mod/module" ) var cmdTidy = &base.Command{ UsageLine: "go mod tidy [-v]", Short: "add missing and remove unused modules", Long: ` Tidy makes sure go.mod matches the source code in the module. It adds any missing modules necessary to build the current module's packages and dependencies, and it removes unused modules that don't provide any relevant packages. It also adds any missing entries to go.sum and removes any unnecessary ones. The -v flag causes tidy to print information about removed modules to standard error. `, } func init() { cmdTidy.Run = runTidy // break init cycle cmdTidy.Flag.BoolVar(&cfg.BuildV, "v", false, "") work.AddModCommonFlags(cmdTidy) } func runTidy(cmd *base.Command, args []string) { if len(args) > 0 { base.Fatalf("go mod tidy: no arguments allowed") } modload.LoadALL() modload.TidyBuildList() modTidyGoSum() // updates memory copy; WriteGoMod on next line flushes it out modload.WriteGoMod() } // modTidyGoSum resets the go.sum file content // to be exactly what's needed for the current go.mod. func modTidyGoSum() { // Assuming go.sum already has at least enough from the successful load, // we only have to tell modfetch what needs keeping. reqs := modload.Reqs() keep := make(map[module.Version]bool) replaced := make(map[module.Version]bool) var walk func(module.Version) walk = func(m module.Version) { // If we build using a replacement module, keep the sum for the replacement, // since that's the code we'll actually use during a build. // // TODO(golang.org/issue/29182): Perhaps we should keep both sums, and the // sums for both sets of transitive requirements. r := modload.Replacement(m) if r.Path == "" { keep[m] = true } else { keep[r] = true replaced[m] = true } list, _ := reqs.Required(m) for _, r := range list { if !keep[r] && !replaced[r] { walk(r) } } } walk(modload.Target) modfetch.TrimGoSum(keep) }
Close