-
Notifications
You must be signed in to change notification settings - Fork 313
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
Allow .yml as well as .yaml #67
Comments
Hey @mitom we've decided to not support Imagine you have:
And you run We went with |
It being the official extension is a good point, I wan't aware of there being a preference! However, it's so commonly interchanged (https://github.com/cloudreach/sceptre/blob/master/circle.yml 😛 ) I would expect it to work as well. Alternatively, a friendlier error for not finding a stack:
(the error above is due to me naming the config As for uniqueness, It seems easy to validate uniqueness based on the filename - ignoring the extension - and throwing an error or falling back to the |
I'd say if this did get implemented, I'd lean towards throwing duplicate stack config exception. To be explicit and prevent any confusion over which file was being used. |
I think the thing to do for now improve the error thrown when Allowing either and throwing an error if a duplicate is found could lead to issues. If two projects were happily using Also, I think think this issue may become redundant if we implement #62 in v2. |
@jamesroutley could you elaborate on the error you could see happening when code is shared? Tbh, another reason this hadn't been done, was it was low priority and we were trying to keep maintainability - Implementing throwing an exception to warn .yml being used kinda negates this. |
so if you have any @galbinasu and I looked at the implementation the first time this issue was raised (on BitBucket) and we decided that it wasn't worth adding support for the uniqueness reason mentioned in my first post. If we only have one extension, we defer uniqueness checking to the filesystem. If we have both, we have to implement it ourselves. |
@jamesroutley sorry I meant what issues do you see happening when code is shared, like you mentioned. (Not the error about unsupported file extension). Not sure I see the disadvantages... Right - but if we are going to have implement something either way - if we throw a UnsupportedTemplateFileTypeError or we throw a DuplicateConfigurationFileError. Amount of code/logic probably is about the same. |
@jamesroutley #62 would help some but definitely wouldn't solve it. The I don't see how shared code or collaboration would cause errors with this, in case 2 projects are merged (or partially merged) there are definitely more work to be done than renaming 1 file and changing the resolver for some parameters to avoid the duplicate. I understand the aim for simplicity, but I still disagree on behalf of pretty much everything else supporting |
@seanrankine sounds good - let's go with that. So when we search for stacks we'll look for (.yml|.yaml) and throw an error if a directory contains a .yml and .yaml with the same basename? |
Yup! |
I know this is an old thread, but can we close as will not implement?
|
Yeh I agree @JuanCanham. It is not a priority at the moment, I will make sure it is clear in the docs to use .yaml and not .yml. |
Could you allow using .yml as well as .yaml for the configuration files? I'd say they are equally common and they are both valid. .yml files are simply ignored at the moment.
The text was updated successfully, but these errors were encountered: