Comment 1 for bug 2011747

Revision history for this message
Jürgen Gmach (jugmac00) wrote :

The error is about:

```
lp.snappy.interfaces.snap.SnapPrivacyMismatch: Snap recipe contains private information and cannot be public.
```

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:

```
    def isValidInformationType(
        self, information_type, owner, branch=None, git_ref=None
    ):
        private = information_type not in PUBLIC_INFORMATION_TYPES
        if private:
            # If appropriately enabled via feature flag.
            if not getFeatureFlag(SNAP_PRIVATE_FEATURE_FLAG):
                raise SnapPrivateFeatureDisabled
            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
```