← Back to issue list

license does not work in the snap installation.

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1606283
Type
issue
State
closed
Author
~liu-xiao-guo
Labels
—
Created
Updated
Closed

Current evaluation

Closed Won't Fix as obsolete; snapcore/snapcraft#880 (1dab7aaed) removed per-snap license metadata under LP #1638303 because snapd ignored it.

Resolution: closed superseded

Reason: The maintainer closed the report Won't Fix in response to LP #1638303. Its cleanup was implemented by merged snapcore/snapcraft#880 (commit 1dab7aaed), removing the unsupported license concept instead of restoring install-time prompts.

Evaluated by: mr-cal-bot

No scores available.

Issue body

I tried the license example code at: https://github.com/snapcore/snapcraft/tree/master/integration_tests/snaps/license When I build the example code, I get the warning like: liuxg@liuxg:~/snappy/desktop/snapcraft/integration_tests/snaps/license$ snapcraft Preparing to pull nothing Pulling nothing Preparing to build nothing Building nothing Staging nothing Priming nothing DEPRECATED: 'license' defined in snapcraft.yaml Snapping 'test-license' | Snapped test-license_0.1_amd64.snap liuxg@liuxg:~/snappy/desktop/snapcraft/integration_tests/snaps/license$ ls LICENSE parts prime snapcraft.yaml stage test-license_0.1_amd64.snap liuxg@liuxg:~/snappy/desktop/snapcraft/integration_tests/snaps/license$ sudo snap install *.snap [sudo] password for liuxg: Name Version Rev Developer Notes test-license 0.1 x1 When I try to install it, the license file does not get prompted for acceptation. When I build it for the second time, I get the error like: liuxg@liuxg:~/snappy/desktop/snapcraft/integration_tests/snaps/license$ snapcraft Skipping pull nothing (already ran) Skipping build nothing (already ran) Skipping stage nothing (already ran) Skipping prime nothing (already ran) DEPRECATED: 'license' defined in snapcraft.yaml [Errno 17] File exists: 'LICENSE' -> '/home/liuxg/snappy/desktop/snapcraft/integration_tests/snaps/license/prime/meta/license.txt' Thanks & best regards, XiaoGuo

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed superseded Closed Won't Fix as obsolete; snapcore/snapcraft#880 (1dab7aaed) removed per-snap license metadata under LP #1638303 because snapd ignored it.
stealth/space-bunny-alpha — closed superseded License prompting was closed as Won't Fix; canonical/snapcraft#880 (commit 1dab7aaed) later removed license concepts as Snapcraft moved toward a general terms-of-service mechanism.
stealth/space-bunny-alpha — closed stale Closed as obsolete: the license field and its installation-prompt behavior had been removed by PR #880 (commit 1dab7aaed), so no fix was applied.
qwen/qwen3.6-35b-a3b — — Closed due to deprecation of the license field in snapcraft.yaml. The reported installation prompt failure and build errors are obsolete. No fix was applied as the feature was removed.
qwen/qwen3.6-35b-a3b — — Closed without discussion. The license field was deprecated in snapcraft, so the issue was abandoned or closed as wontfix. No fix was applied.
qwen/qwen3.6-35b-a3b — — Closed as obsolete. The license field in snapcraft.yaml was deprecated, rendering the reported acceptance and file conflict errors irrelevant. No code changes were applied.
qwen3.6-35b-a3b-mtp-q6 — — The snapcraft license field was deprecated, causing the reported prompt failure and build errors. The issue was closed as obsolete due to upstream deprecation.

Update history

Date Change
created

Related work

  • Superseded By: snapcraft (launchpad)#1638303 (confidence 99%)

    The maintainer explicitly cited this issue when closing LP #1606283 as Won't Fix.

  • Related To: snapcore/snapcraft#880 (confidence 99%)

    Merged commit 1dab7aaed removed obsolete license metadata and associated Snapcraft concepts.

Related issues

Issue Project State Summary Similarity
#1638303 Remove obsoleted license enries from snapcraft snapcraft (launchpad) closed Obsolete license metadata removed from snapcraft by merged PR snapcore/snapcraft#880 (commit 1dab7aaed, "Remove license concepts"), since license entries are ignored by snapd; launchpad #1638303 closed by maintainer.
77%