meta: support for the environment keyword. #1103

Merged
merged 4 commits into from Feb 6, 2017

Conversation

Projects
None yet
2 participants
Collaborator

sergiusens commented Feb 2, 2017

LP: #1583259

Signed-off-by: Sergio Schvezov sergio.schvezov@canonical.com

Member

kyrofa commented Feb 2, 2017

\o/

Looks good, but I suggest making the schema a bit more explicit.

+ environment:
+ type: object
+ description: environment entries for the snap as a whole
+ minItems: 1
@kyrofa

kyrofa Feb 2, 2017

Member

We should probably catch empty values here. Perhaps by being more explicit:

environment:
    type: object
    description: environment entries for the snap as a whole
    minItems: 1
    additionalProperties:
        anyOf:
            - type: string
              minLength: 1
            - type: number
+ environment:
+ type: object
+ description: environment entries for the specific app.
+ minItems: 1
@kyrofa

kyrofa Feb 2, 2017

Member

We should probably catch empty values here as well. You might consider putting this into definitions so as to not duplicate.

@kyrofa

kyrofa Feb 2, 2017

Member

Err... sorry, the definitions aren't working without #1059 .

kyrofa approved these changes Feb 3, 2017 edited

Looks good. Of course the errors are still terrible, but #1059 has ways of improving that as well.

sergiusens added some commits Feb 2, 2017

meta: support for the environment keyword.
Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>

@sergiusens sergiusens merged commit c66f556 into snapcore:master Feb 6, 2017

3 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
xenial-amd64 autopkgtest finished (success)
Details
zesty-amd64 autopkgtest finished (success)
Details

@sergiusens sergiusens deleted the sergiusens:feature/1583259/environment branch Feb 6, 2017

elopio added a commit to elopio/snapcraft that referenced this pull request Feb 10, 2017

meta: support for the environment keyword. (#1103)
LP: #1583259

Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>

elopio added a commit that referenced this pull request Feb 28, 2017

meta: support for the environment keyword. (#1103)
LP: #1583259

Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>

kalikiana pushed a commit to kalikiana/snapcraft that referenced this pull request Apr 6, 2017

meta: support for the environment keyword. (#1103)
LP: #1583259

Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment