Al-HUWAITI Shell
Al-huwaiti


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/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/opt/golang/1.22.0/src/cmd/go/testdata/script/list_case_collision.txt
# Tests golang.org/issue/4773

go list -json example/a
stdout 'case-insensitive import collision'

! go build example/a
stderr 'case-insensitive import collision'

# List files explicitly on command line, to encounter case-checking
# logic even on case-insensitive filesystems.
cp b/file.go b/FILE.go  # no-op on case-insensitive filesystems
! go list b/file.go b/FILE.go
stderr 'case-insensitive file name collision'

mkdir a/Pkg  # no-op on case-insensitive filesystems
cp a/pkg/pkg.go a/Pkg/pkg.go  # no-op on case-insensitive filesystems
! go list example/a/pkg example/a/Pkg

# Test that the path reported with an indirect import is correct.
cp b/file.go b/FILE.go
[case-sensitive] ! go build example/c
[case-sensitive] stderr '^package example/c\n\timports example/b: case-insensitive file name collision: "FILE.go" and "file.go"$'

-- go.mod --
module example

go 1.16
-- a/a.go --
package p
import (
	_ "example/a/pkg"
	_ "example/a/Pkg"
)
-- a/pkg/pkg.go --
package pkg
-- b/file.go --
package b
-- c/c.go --
package c

import _ "example/b"

Al-HUWAITI Shell