[Bug 1814640] Re: snap info showing "unset" license for snaps

2020-08-03 Thread Samuele Pedroni
** Changed in: snapd Importance: Undecided => Medium ** Changed in: snapd (Ubuntu) Importance: Undecided => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1814640 Title: snap info

[Bug 1814640] Re: snap info showing "unset" license for snaps

2019-02-13 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: snapd (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1814640 Title:

[Bug 1814640] Re: snap info showing "unset" license for snaps

2019-02-05 Thread Gustavo Niemeyer
The behavior of snapd seems correct, in the sense different revisions of the snap may have different licenses. "Rectifying" a license in a way that future information affect past code seems very bogus in this context. With that said, we might have a special case for "unset". -- You received

[Bug 1814640] Re: snap info showing "unset" license for snaps

2019-02-05 Thread John Lenton
Not sure what combination I tried and failed, last weekend; I'm glad it's working in snapcraft. Now we need to sort it out in the store and snapd... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1814640] Re: snap info showing "unset" license for snaps

2019-02-05 Thread Sergio Schvezov
That is correct, as evidenced by this test: https://github.com/snapcore/snapcraft/blob/master/tests/spread/general/license-valid/task.yaml and this one https://github.com/snapcore/snapcraft/blob/master/tests/spread/general/license-invalid/task.yaml -- You received this bug notification because

[Bug 1814640] Re: snap info showing "unset" license for snaps

2019-02-05 Thread John Lenton
> I also believe that snapcraft *does* support license, but only when actually running 3.x code (i.e. base: keyword is present). huh, just tried again and it worked. Sweet. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1814640] Re: snap info showing "unset" license for snaps

2019-02-05 Thread Adam Collard
> The store treats it as if it were per snap, meaning that it lets a publisher unilaterally change the license of something, which is not ideal. The license field is not authoritative, it reflects what license the code is under. The store allows the publisher to rectify mistakes, and update the

[Bug 1814640] Re: snap info showing "unset" license for snaps

2019-02-05 Thread John Lenton
When the snap is installed a number of fields in `snap info` come from the installed snap; license is one of these. Unfortunately snapcraft still doesn't understand license (last tested with 3.0 a few days ago building icdiff), so unless the developer has gone out of their way and used

[Bug 1814640] Re: snap info showing "unset" license for snaps

2019-02-05 Thread Adam Collard
snapd seems to not understand the license that the store does, so that when the snaps are installed it thinks the license is unset. I correctly saw the license for both snaps when they were uninstalled: $ snap info h2static sshoot | grep license license: LGPL-3.0 license: GPL-3.0+ $ snap