-
Notifications
You must be signed in to change notification settings - Fork 72
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
[Proposal] _dev folder #22
Comments
@ruflin @mtojek @jonathan-buttner Thoughts on this proposal? |
I like the approach of keeping a side Regarding the name, I don't discuss :) Both |
++ on this proposal. I wonder if you really need to add it to the package spec or could go with the convention that anything starting with Inside the |
I think it would be fine to "version" it once first packages with test samples are pushed to the repository. |
It's a fair question. I think the only time it makes sense to add something to the spec — as opposed to relying on conventions — is if there is some code somewhere depending on a certain structure for that something. In the case of the
I actually think it's better to define it in the spec as we see it now and then modify it as needed. Better that IMO than having each package follow slightly different naming conventions and then try to corral them all into a single spec later when we have several packages. Also, as mentioned in the previous paragraph, the The nice thing is that the spec version is |
@ycombinator SGTM. What I want to prevent, is that the spec is slowing us down on the implementation side and that we worry making breaking changes also after the package spec itself went to 1.0.0. We had quite a few iterations on the package spec and I think we are getting in the direction of 1.0.0. But on the _dev side, everything is still fresh and will change. |
I'm going with this part. |
The |
…ic#22) * Adjust cluster subcommand to recent changes in package-storage * Take down the cluster before re-up * Clear package contents on up
We are starting to implement test runners for various types of package tests in the
elastic-package
tool: elastic/elastic-package#15, elastic/elastic-package#16, etc. This is bringing up the need to keep files that are needed only at development time somewhere under the package root folder. Examples of such files could be test golden files, docker compose files, etc. As such files would be needed at package development time only, we would not want them to be bundled into the package when it is published to the package registry.So I'm proposing one change to the package spec and one change to the spec format itself:
Enhancing the package spec to allow for a new
_dev
folder that could exist under the package root folder or under a dataset's folder, so essentially:Conceptually,
_dev
is similar to the_meta
folders we see in Beats. However, I went with_dev
to make it more explicit that the files under this folder are intended for development-time only. That said, I'm not married to the name_dev
; happy to consider other names or other ideas that achieve the goal of creating a space for development-time-only files.Adding an optional field in the package spec format called
visibility
. This field is applicable to file or folder elements in the specification format. It can have values such asprivate
orpublic
, defaulting topublic
. It indicates whether the file or folder being defined in the spec should exist in the public version of the package, i.e. the one available from the package registry (visibility: public
) or not (visibility: private
).Accordingly, the aforementioned
_dev
folder specification would be set tovisibility: private
in the spec.The text was updated successfully, but these errors were encountered: