Gadget snap Recipe Creation Error
Bug #2011747 reported by
Talha Can Havadar
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Triaged
|
Low
|
Unassigned |
Bug Description
Repo has snap/snapcraft.yml and gadget.yml in root folder. I tried to create a snap recipe with default options.
Here is the Error ID: OOPS-33b62023b1749175e9e0c54dfaa90e34
To post a comment you must log in.
The error is about:
``` interfaces. snap.SnapPrivac yMismatch: Snap recipe contains private information and cannot be public.
lp.snappy.
```
Does that make sense to you?
And when I have a look at the source code, one of the two conditions which return `False` will apply to your situation:
``` ionType( INFORMATION_ TYPES SNAP_PRIVATE_ FEATURE_ FLAG):
raise SnapPrivateFeat ureDisabled
def isValidInformat
self, information_type, owner, branch=None, git_ref=None
):
private = information_type not in PUBLIC_
if private:
# If appropriately enabled via feature flag.
if not getFeatureFlag(
return True
# Public snaps with private sources are not allowed.
source = branch or git_ref
if source is not None and source.private:
return False
# Public snaps owned by private teams are not allowed.
if owner is not None and owner.private:
return False
return True
```