Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- results from following https://github.com/snapcore/snapd/HACKING.md (to compile snap from source):
- [user@Pavilion ~]$ go get -d -v github.com/snapcore/snapd/...
- warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/debian
- warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/amzn-2
- warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/centos-7
- warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/centos-8
- warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/fedora-29
- warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/fedora-30
- warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/fedora-31
- warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/fedora-32
- warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/fedora-rawhide
- warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/opensuse-15.0
- warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/opensuse-15.1
- warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/opensuse-15.2
- warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/opensuse-tumbleweed
- warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/ubuntu-14.04/source
- warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/debian
- warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/amzn-2
- warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/centos-7
- warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/centos-8
- warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/fedora-29
- warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/fedora-30
- warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/fedora-31
- warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/fedora-32
- warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/fedora-rawhide
- warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/opensuse-15.0
- warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/opensuse-15.1
- warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/opensuse-15.2
- warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/opensuse-tumbleweed
- warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/ubuntu-14.04/source
- [user@Pavilion ~]$ go get -u github.com/kardianos/govendor
- [user@Pavilion ~]$ cd $GOPATH/src/github.com/snapcore/snapd
- [user@Pavilion snapd (master)]$ govendor sync
- [user@Pavilion snapd (master)]$ pwd
- /home/user/work/src/github.com/snapcore/snapd
- [user@Pavilion snapd (master)]$ go build -o /tmp/snap github.com/snapcore/snapd/cmd/snap
- [user@Pavilion snapd (master)]$ go install gitub.com/snapcore/snapd/cmd/snap/...
- go: warning: "gitub.com/snapcore/snapd/cmd/snap/..." matched no packages
- [user@Pavilion snapd (master)]$ go install github.com/snapcore/snapd/cmd/snap/...
- [user@Pavilion snapd (master)]$ go build -o /tmp/snapd github.com/snapcore/snapd/cmd/snapd
- [user@Pavilion snapd (master)]$ ./run-checks
- Obtaining dependencies
- Checking docs
- Checking formatting
- Formatting wrong in following files:
- /home/user/work/src/github.com/snapcore/snapd/progress/ansimeter_test.go
- diff -u /home/user/work/src/github.com/snapcore/snapd/progress/ansimeter_test.go.orig /home/user/work/src/github.com/snapcore/snapd/progress/ansimeter_test.go
- --- /home/user/work/src/github.com/snapcore/snapd/progress/ansimeter_test.go.orig 2020-11-03 19:56:55.600602788 -0500
- +++ /home/user/work/src/github.com/snapcore/snapd/progress/ansimeter_test.go 2020-11-03 19:56:55.600602788 -0500
- @@ -87,7 +87,7 @@
- p := &progress.ANSIMeter{}
- p.Finished()
- c.Check(buf.String(), check.Equals, fmt.Sprint(
- - "\r", // move cursor to start of line
- + "\r", // move cursor to start of line
- progress.ExitAttributeMode, // turn off color, reverse, bold, anything
- progress.CursorVisible, // turn the cursor back on
- progress.ClrEOL, // and clear the rest of the line
- /home/user/work/src/github.com/snapcore/snapd/overlord/assertstate/assertstate_test.go
- diff -u /home/user/work/src/github.com/snapcore/snapd/overlord/assertstate/assertstate_test.go.orig /home/user/work/src/github.com/snapcore/snapd/overlord/assertstate/assertstate_test.go
- --- /home/user/work/src/github.com/snapcore/snapd/overlord/assertstate/assertstate_test.go.orig 2020-11-03 19:56:53.695596445 -0500
- +++ /home/user/work/src/github.com/snapcore/snapd/overlord/assertstate/assertstate_test.go2020-11-03 19:56:53.695596445 -0500
- @@ -227,8 +227,8 @@
- s.o.AddManager(s.o.TaskRunner())
- s.fakeStore = &fakeStore{
- - state: s.state,
- - db: s.storeSigning,
- + state: s.state,
- + db: s.storeSigning,
- maxDeclSupportedFormat: asserts.SnapDeclarationType.MaxSupportedFormat(),
- }
- s.trivialDeviceCtx = &snapstatetest.TrivialDeviceContext{
- /home/user/work/src/github.com/snapcore/snapd/overlord/servicestate/service_control_test.go
- diff -u /home/user/work/src/github.com/snapcore/snapd/overlord/servicestate/service_control_test.go.orig /home/user/work/src/github.com/snapcore/snapd/overlord/servicestate/service_control_test.go
- --- /home/user/work/src/github.com/snapcore/snapd/overlord/servicestate/service_control_test.go.orig 2020-11-03 19:56:54.638599585 -0500
- +++ /home/user/work/src/github.com/snapcore/snapd/overlord/servicestate/service_control_test.go 2020-11-03 19:56:54.638599585 -0500
- @@ -710,13 +710,13 @@
- changed: false,
- },
- {
- - enable: []string{"a"},
- + enable: []string{"a"},
- expectedSnapstateEnabled: []string{"a"},
- changed: true,
- },
- // enable again does nothing
- {
- - enable: []string{"a"},
- + enable: []string{"a"},
- expectedSnapstateEnabled: []string{"a"},
- changed: false,
- },
- @@ -726,7 +726,7 @@
- changed: true,
- },
- {
- - enable: []string{"a", "c"},
- + enable: []string{"a", "c"},
- expectedSnapstateEnabled: []string{"a", "c"},
- changed: true,
- },
- /home/user/work/src/github.com/snapcore/snapd/osutil/udev/netlink/uevent_test.go
- diff -u /home/user/work/src/github.com/snapcore/snapd/osutil/udev/netlink/uevent_test.go.orig /home/user/work/src/github.com/snapcore/snapd/osutil/udev/netlink/uevent_test.go
- --- /home/user/work/src/github.com/snapcore/snapd/osutil/udev/netlink/uevent_test.go.orig 2020-11-03 19:56:53.621596199 -0500
- +++ /home/user/work/src/github.com/snapcore/snapd/osutil/udev/netlink/uevent_test.go 2020-11-03 19:56:53.621596199 -0500
- @@ -92,7 +92,7 @@
- Action: REMOVE,
- KObj: "/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/ttyUSB0/tty/ttyUSB0",
- Env: map[string]string{
- - "MINOR": "0",
- + "MINOR": "0",
- "ID_PCI_CLASS_FROM_DATABASE": "Serial bus controller",
- "ID_PCI_SUBCLASS_FROM_DATABASE": "USB controller",
- "ID_VENDOR_FROM_DATABASE": "Future Technology Devices International, Ltd",
- @@ -137,21 +137,21 @@
- Action: ADD,
- KObj: "/devices/pci0000:00/0000:00:14.0/usb1/1-2",
- Env: map[string]string{
- - "DEVTYPE": "usb_device",
- - "SEQNUM": "4410",
- - "DRIVER": "usb",
- - "DEVPATH": "/devices/pci0000:00/0000:00:14.0/usb1/1-2",
- - "SUBSYSTEM": "usb",
- - "BUSNUM": "001",
- - "ID_USB_INTERFACES": ":ff0000:",
- - "USEC_INITIALIZED": "77155422759",
- - "ID_VENDOR_ENC": "Silicon\\x20Labs",
- - "ID_VENDOR_ID": "10c4",
- - "ID_SERIAL": "Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001",
- - "ACTION": "add",
- - "DEVNAME": "/dev/bus/usb/001/033",
- - "MAJOR": "189",
- - "ID_MODEL_FROM_DATABASE": "CP2102/CP2109 UART Bridge Controller [CP210x family]",
- + "DEVTYPE": "usb_device",
- + "SEQNUM": "4410",
- + "DRIVER": "usb",
- + "DEVPATH": "/devices/pci0000:00/0000:00:14.0/usb1/1-2",
- + "SUBSYSTEM": "usb",
- + "BUSNUM": "001",
- + "ID_USB_INTERFACES": ":ff0000:",
- + "USEC_INITIALIZED": "77155422759",
- + "ID_VENDOR_ENC": "Silicon\\x20Labs",
- + "ID_VENDOR_ID": "10c4",
- + "ID_SERIAL": "Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001",
- + "ACTION": "add",
- + "DEVNAME": "/dev/bus/usb/001/033",
- + "MAJOR": "189",
- + "ID_MODEL_FROM_DATABASE": "CP2102/CP2109 UART Bridge Controller [CP210x family]",
- "TYPE": "0/0/0",
- "ID_REVISION": "0100",
- "ID_BUS": "usb",
- /home/user/work/src/github.com/snapcore/snapd/interfaces/policy/basedeclaration_test.go
- diff -u /home/user/work/src/github.com/snapcore/snapd/interfaces/policy/basedeclaration_test.go.orig /home/user/work/src/github.com/snapcore/snapd/interfaces/policy/basedeclaration_test.go
- --- /home/user/work/src/github.com/snapcore/snapd/interfaces/policy/basedeclaration_test.go.orig 2020-11-03 19:56:53.244594943 -0500
- +++ /home/user/work/src/github.com/snapcore/snapd/interfaces/policy/basedeclaration_test.go2020-11-03 19:56:53.244594943 -0500
- @@ -584,49 +584,49 @@
- slotInstallation = map[string][]string{
- // other
- - "adb-support": {"core"},
- - "audio-playback": {"app", "core"},
- - "audio-record": {"app", "core"},
- - "autopilot-introspection": {"core"},
- - "avahi-control": {"app", "core"},
- - "avahi-observe": {"app", "core"},
- - "bluez": {"app", "core"},
- - "bool-file": {"core", "gadget"},
- - "browser-support": {"core"},
- - "content": {"app", "gadget"},
- - "core-support": {"core"},
- - "cups": {"app"},
- - "cups-control": {"app", "core"},
- - "dbus": {"app"},
- - "docker-support": {"core"},
- - "dummy": {"app"},
- - "fwupd": {"app", "core"},
- - "gpio": {"core", "gadget"},
- - "gpio-control": {"core"},
- - "greengrass-support": {"core"},
- - "hidraw": {"core", "gadget"},
- - "i2c": {"core", "gadget"},
- - "iio": {"core", "gadget"},
- - "kubernetes-support": {"core"},
- - "location-control": {"app"},
- - "location-observe": {"app"},
- - "lxd-support": {"core"},
- - "maliit": {"app"},
- - "media-hub": {"app", "core"},
- - "mir": {"app"},
- - "modem-manager": {"app", "core"},
- - "mpris": {"app"},
- - "network-manager": {"app", "core"},
- - "network-manager-observe": {"app", "core"},
- - "network-status": {"core"},
- - "ofono": {"app", "core"},
- - "online-accounts-service": {"app"},
- - "power-control": {"core"},
- - "ppp": {"core"},
- - "pulseaudio": {"app", "core"},
- - "raw-volume": {"core", "gadget"},
- - "serial-port": {"core", "gadget"},
- - "spi": {"core", "gadget"},
- + "adb-support": {"core"},
- + "audio-playback": {"app", "core"},
- + "audio-record": {"app", "core"},
- + "autopilot-introspection": {"core"},
- + "avahi-control": {"app", "core"},
- + "avahi-observe": {"app", "core"},
- + "bluez": {"app", "core"},
- + "bool-file": {"core", "gadget"},
- + "browser-support": {"core"},
- + "content": {"app", "gadget"},
- + "core-support": {"core"},
- + "cups": {"app"},
- + "cups-control": {"app", "core"},
- + "dbus": {"app"},
- + "docker-support": {"core"},
- + "dummy": {"app"},
- + "fwupd": {"app", "core"},
- + "gpio": {"core", "gadget"},
- + "gpio-control": {"core"},
- + "greengrass-support": {"core"},
- + "hidraw": {"core", "gadget"},
- + "i2c": {"core", "gadget"},
- + "iio": {"core", "gadget"},
- + "kubernetes-support": {"core"},
- + "location-control": {"app"},
- + "location-observe": {"app"},
- + "lxd-support": {"core"},
- + "maliit": {"app"},
- + "media-hub": {"app", "core"},
- + "mir": {"app"},
- + "modem-manager": {"app", "core"},
- + "mpris": {"app"},
- + "network-manager": {"app", "core"},
- + "network-manager-observe": {"app", "core"},
- + "network-status": {"core"},
- + "ofono": {"app", "core"},
- + "online-accounts-service": {"app"},
- + "power-control": {"core"},
- + "ppp": {"core"},
- + "pulseaudio": {"app", "core"},
- + "raw-volume": {"core", "gadget"},
- + "serial-port": {"core", "gadget"},
- + "spi": {"core", "gadget"},
- "storage-framework-service": {"app"},
- "thumbnailer-service": {"app"},
- "ubuntu-download-manager": {"app"},
- @@ -753,15 +753,15 @@
- // connecting with these interfaces needs to be allowed on
- // case-by-case basis
- noconnect := map[string]bool{
- - "content": true,
- - "cups": true,
- - "docker": true,
- - "fwupd": true,
- - "location-control": true,
- - "location-observe": true,
- - "lxd": true,
- - "maliit": true,
- - "mir": true,
- + "content": true,
- + "cups": true,
- + "docker": true,
- + "fwupd": true,
- + "location-control": true,
- + "location-observe": true,
- + "lxd": true,
- + "maliit": true,
- + "mir": true,
- "online-accounts-service": true,
- "raw-volume": true,
- "storage-framework-service": true,
- /home/user/work/src/github.com/snapcore/snapd/boot/modeenv_test.go
- diff -u /home/user/work/src/github.com/snapcore/snapd/boot/modeenv_test.go.orig /home/user/work/src/github.com/snapcore/snapd/boot/modeenv_test.go
- --- /home/user/work/src/github.com/snapcore/snapd/boot/modeenv_test.go.orig 2020-11-03 19:56:51.465589020 -0500
- +++ /home/user/work/src/github.com/snapcore/snapd/boot/modeenv_test.go 2020-11-03 19:56:51.465589020 -0500
- @@ -54,15 +54,15 @@
- func (s *modeenvSuite) TestKnownKnown(c *C) {
- // double check keys as found with reflect
- c.Check(boot.ModeenvKnownKeys, DeepEquals, map[string]bool{
- - "mode": true,
- - "recovery_system": true,
- - "current_recovery_systems": true,
- - "base": true,
- - "try_base": true,
- - "base_status": true,
- - "current_kernels": true,
- - "model": true,
- - "grade": true,
- + "mode": true,
- + "recovery_system": true,
- + "current_recovery_systems": true,
- + "base": true,
- + "try_base": true,
- + "base_status": true,
- + "current_kernels": true,
- + "model": true,
- + "grade": true,
- "current_trusted_boot_assets": true,
- "current_trusted_recovery_boot_assets": true,
- })
- /home/user/work/src/github.com/snapcore/snapd/asserts/account_key_test.go
- diff -u /home/user/work/src/github.com/snapcore/snapd/asserts/account_key_test.go.orig /home/user/work/src/github.com/snapcore/snapd/asserts/account_key_test.go
- --- /home/user/work/src/github.com/snapcore/snapd/asserts/account_key_test.go.orig 2020-11-03 19:56:50.773586716 -0500
- +++ /home/user/work/src/github.com/snapcore/snapd/asserts/account_key_test.go 2020-11-03 19:56:50.773586716 -0500
- @@ -650,7 +650,7 @@
- untilHeader string
- until time.Time
- }{
- - {"", time.Time{}}, // zero time default
- + {"", time.Time{}}, // zero time default
- {aks.until.Format(time.RFC3339), aks.until}, // in the future
- {aks.since.Format(time.RFC3339), aks.since}, // same as since
- }
- Crushing failure and despair.
- [user@Pavilion snapd (master)]$ pwd
- /home/user/work/src/github.com/snapcore/snapd
Add Comment
Please, Sign In to add comment