Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Treat XDG_CONFIG_HOME and $HOME/.config the same way #2084

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Treat XDG_CONFIG_HOME and $HOME/.config the same way

0285387
Select commit
Loading
Failed to load commit list.
Open

Treat XDG_CONFIG_HOME and $HOME/.config the same way #2084

Treat XDG_CONFIG_HOME and $HOME/.config the same way
0285387
Select commit
Loading
Failed to load commit list.
Cirrus CI / lint failed Sep 5, 2024 in 1m 10s

Task Summary

Instruction test failed in 00:58

Details

✅ 00:01 clone
✅ 00:04 modules
✅ 00:03 build
❌ 00:58 test

store.go:1789:11: options.UIDMap undefined (type ContainerOptions has no field or method UIDMap) (typecheck)
		options.UIDMap = nil
		        ^
store.go:1791:13: options.HostGIDMapping undefined (type ContainerOptions has no field or method HostGIDMapping) (typecheck)
	if options.HostGIDMapping {
	           ^
store.go:1792:11: options.GIDMap undefined (type ContainerOptions has no field or method GIDMap) (typecheck)
		options.GIDMap = nil
		        ^
store.go:1803:13: options.AutoUserNs undefined (type ContainerOptions has no field or method AutoUserNs) (typecheck)
	if options.AutoUserNs || options.UIDMap != nil || options.GIDMap != nil {
	           ^
store.go:1855:13: options.AutoUserNs undefined (type ContainerOptions has no field or method AutoUserNs) (typecheck)
	if options.AutoUserNs {
	           ^
store.go:1857:66: options.AutoUserNsOpts undefined (type ContainerOptions has no field or method AutoUserNsOpts) (typecheck)
		options.UIDMap, options.GIDMap, err = s.getAutoUserNS(&options.AutoUserNsOpts, cimage, rlstore, lstores)
		                                                               ^
store.go:1863:20: options.UIDMap undefined (type ContainerOptions has no field or method UIDMap) (typecheck)
	uidMap := options.UIDMap
	                  ^
store.go:1864:20: options.GIDMap undefined (type ContainerOptions has no field or method GIDMap) (typecheck)
	gidMap := options.GIDMap
	                  ^
store.go:1875:16: options.HostUIDMapping undefined (type ContainerOptions has no field or method HostUIDMapping) (typecheck)
			if !options.HostUIDMapping && len(options.UIDMap) == 0 {
			            ^
store.go:1878:16: options.HostGIDMapping undefined (type ContainerOptions has no field or method HostGIDMapping) (typecheck)
			if !options.HostGIDMapping && len(options.GIDMap) == 0 {
			            ^
store.go:1887:15: options.HostUIDMapping undefined (type ContainerOptions has no field or method HostUIDMapping) (typecheck)
		if !options.HostUIDMapping && len(options.UIDMap) == 0 {
		            ^
store.go:1890:15: options.HostGIDMapping undefined (type ContainerOptions has no field or method HostGIDMapping) (typecheck)
		if !options.HostGIDMapping && len(options.GIDMap) == 0 {
		            ^
store.go:1946:32: options.UIDMap undefined (type ContainerOptions has no field or method UIDMap) (typecheck)
			HostUIDMapping: len(options.UIDMap) == 0,
			                            ^
store.go:1947:32: options.GIDMap undefined (type ContainerOptions has no field or method GIDMap) (typecheck)
			HostGIDMapping: len(options.GIDMap) == 0,
			                            ^
pkg/homedir/homedir.go:1: : # github.com/containers/storage/pkg/homedir [github.com/containers/storage/pkg/homedir.test]
pkg/homedir/homedir_unix.go:134:102: undefined: tmpDir (typecheck)
package homedir
pkg/mflag/flag.go:96:2: could not import github.com/containers/storage/pkg/homedir (-: # github.com/containers/storage/pkg/homedir
pkg/homedir/homedir_unix.go:134:102: undefined: tmpDir) (typecheck)
	"github.com/containers/storage/pkg/homedir"
	^
types/options.go:15:2: could not import github.com/containers/storage/pkg/homedir (-: # github.com/containers/storage/pkg/homedir
pkg/homedir/homedir_unix.go:134:102: undefined: tmpDir) (typecheck)
	"github.com/containers/storage/pkg/homedir"
	^
make: *** [Makefile:90: lint] Error 1

Exit status: 2