Skip to content

Fixes #182 Allow overriding appspec path + fallback to appspec.yml and appspec.yaml #265

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 22, 2021
Merged

Conversation

lc-nyovchev
Copy link

@lc-nyovchev lc-nyovchev commented Aug 12, 2020

What

Fixes #182: Allow for .yaml extension for appspec.

What is actually happening under the hood

Now we allow for a new parameter:

--appspec-filename

Which allows us to specify (and thus override) an alternative name to the previously hardcoded appspec.yml file.
If the --appspec-filename variable is not set, then it defaults to: appspec.yml (which is the old value)

Additionally, if this parameter is set but we fail to find the file it points to in the root dir, we fallback to (in that order):

  • appspec.yaml
  • appspec.yml

Acknowledgement of License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Additional notes:

@yubangxi if we are merging this, it'd be a good idea to also update the info in the doc to reflect that.

@coveralls
Copy link

coveralls commented Aug 12, 2020

Coverage Status

Coverage increased (+0.01%) to 91.723% when pulling aff5b11 on lc-nyovchev:issue-182 into baaa837 on aws:master.

@lc-nyovchev lc-nyovchev marked this pull request as ready for review August 12, 2020 17:44
@lc-nyovchev lc-nyovchev reopened this Aug 15, 2020
Copy link

@nokite nokite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice change and good job with the tests

Copy link

@nokite nokite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎸 🤘

@lc-nyovchev lc-nyovchev closed this Sep 1, 2020
@lc-nyovchev lc-nyovchev reopened this Sep 1, 2020
nyo added 3 commits September 3, 2020 20:49
Removed leftover debug typos

Renamed variable to not have default in the name

Added arg --appspec-path

Allow for appspec-filename to be overridden
@lc-nyovchev
Copy link
Author

lc-nyovchev commented Sep 3, 2020

@yubangxi @rohkat-aws or @brblck do you guys mind re-running the travis build on the PR as I added new tests? Seems reopening/closing or new commits don't help.

@lc-nyovchev
Copy link
Author

@vrr-21 I was wondering if you'd be able to review this one? I merged upstream changes from master so the conflicts are now resolved.

@lc-nyovchev lc-nyovchev changed the title Allow overriding appspec path + fallback to appspec.yml and appspec.yaml Fixes #182 Allow overriding appspec path + fallback to appspec.yml and appspec.yaml Jan 10, 2021
@philstrong
Copy link
Contributor

This is a great change, testing on our end then we'll get this merged in.

@philstrong philstrong merged commit 6beb142 into aws:master Feb 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow for .yaml extension of appspec
4 participants