← 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

⚠️ This summary may be outdated — the issue content or evaluation prompts have changed since this evaluation was made.

Closed without discussion. The license field was deprecated in snapcraft, so the issue was abandoned or closed as wontfix. No fix was applied.

Suggested action:

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
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

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1862242 license: field in meta/snap.yaml is not validated store-side snapcraft (launchpad) closed Closed without resolution. The license validation gap in snapcraft and the store was not addressed in this thread and appears abandoned.
81%
#1638303 Remove obsoleted license enries from snapcraft snapcraft (launchpad) closed Closed as abandoned. The license entries were discarded because snapd ignores them and the Snap Store now manages terms of service instead.
73%
#403 Error executing licensecheck fetch-service closed Closed without resolution. The missing licensecheck binary causing snapcraft fetch-service failures was logged and forwarded to internal Jira ticket CRAFT-4615. No fix or merge details provided.
71%
#1610268 icon and license are deprecated snapcraft (launchpad) closed Closed as WONTFIX. The deprecation of custom icon and license paths in snapcraft.yaml aligns with upstream snapcraft requirements. Projects must now use snapcraft's mandated directory structure. No code changes or workarounds provided.
71%