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

lxd/shared: mode is a uint32 #374

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lxd/shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@
uid := int64(file.UID)
gid := int64(file.GID)
args := lxd.InstanceFileArgs{
Mode: int(mode),
Mode: uint32(mode),

Check failure on line 259 in lxd/shared.go

View workflow job for this annotation

GitHub Actions / build-platforms (1.21)

cannot use uint32(mode) (value of type uint32) as int value in struct literal

Check failure on line 259 in lxd/shared.go

View workflow job for this annotation

GitHub Actions / check-lint (1.21)

cannot use uint32(mode) (value of type uint32) as int value in struct literal

Check failure on line 259 in lxd/shared.go

View workflow job for this annotation

GitHub Actions / acceptance-tests (1.21, latest/stable)

cannot use uint32(mode) (value of type uint32) as int value in struct literal

Check failure on line 259 in lxd/shared.go

View workflow job for this annotation

GitHub Actions / acceptance-tests (1.21, latest/candidate)

cannot use uint32(mode) (value of type uint32) as int value in struct literal
UID: int64(uid),
GID: int64(gid),
Type: "file",
Expand Down Expand Up @@ -368,7 +368,7 @@
args := lxd.InstanceFileArgs{
UID: uid,
GID: gid,
Mode: int(mode.Perm()),
Mode: uint32(mode.Perm()),

Check failure on line 371 in lxd/shared.go

View workflow job for this annotation

GitHub Actions / build-platforms (1.21)

cannot use uint32(mode.Perm()) (value of type uint32) as int value in struct literal

Check failure on line 371 in lxd/shared.go

View workflow job for this annotation

GitHub Actions / check-lint (1.21)

cannot use uint32(mode.Perm()) (value of type uint32) as int value in struct literal

Check failure on line 371 in lxd/shared.go

View workflow job for this annotation

GitHub Actions / acceptance-tests (1.21, latest/stable)

cannot use uint32(mode.Perm()) (value of type uint32) as int value in struct literal

Check failure on line 371 in lxd/shared.go

View workflow job for this annotation

GitHub Actions / acceptance-tests (1.21, latest/candidate)

cannot use uint32(mode.Perm()) (value of type uint32) as int value in struct literal
Type: "directory",
}

Expand Down
Loading