![]() | |
|---|---|
Software: Apache. PHP/5.4.45 uname -a: Linux webm003.cluster110.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue uid=243112(mycochar) gid=100(users) groups=100(users) Safe-mode: OFF (not secure) /home/mycochar/www/image/photo/go/src/cmd/go/testdata/script/ drwxr-xr-x | |
| Viewing file: Select action/file-type: # baz.go (importing just fmt) works with -mod=mod, -mod=vendor.
go build -x -mod=mod my-module/vendor/example.com/another-module/foo/bar/baz.go
go build -x -mod=readonly my-module/vendor/example.com/another-module/foo/bar/baz.go
go build -x -mod=vendor my-module/vendor/example.com/another-module/foo/bar/baz.go
# baz_with_outside_dep.go (with a non-std dependency) works with -mod=mod
# but not with -mod=readonly and -mod=vendor.
go build -x -mod=mod my-module/vendor/example.com/another-module/foo/bar/baz_with_outside_dep.go
! go build -x -mod=readonly my-module/vendor/example.com/another-module/foo/bar/baz_with_outside_dep.go
stderr 'no required module provides package rsc.io/quote'
! go build -x -mod=vendor my-module/vendor/example.com/another-module/foo/bar/baz_with_outside_dep.go
stderr 'no required module provides package rsc.io/quote'
-- my-module/go.mod --
module example.com/my-module
go 1.20
-- my-module/vendor/example.com/another-module/foo/bar/baz.go --
package main
import "fmt"
func main() {
fmt.Println("hello, world.")
}
-- my-module/vendor/example.com/another-module/foo/bar/baz_with_outside_dep.go --
package main
import (
"fmt"
"rsc.io/quote"
)
func main() {
fmt.Println(quote.Hello())
}
|
Useful Commands
|
|
Php Safe-Mode Bypass (Read Files)
|
|
--[ x2300 Locus7Shell v. 1.0a beta Modded by #!physx^ | www.LOCUS7S.com | Generation time: 0.0059 ]-- |