Skip to content
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

Prepare for support of multiple, independent package types #323

Merged
merged 4 commits into from
Apr 26, 2022

Conversation

mtojek
Copy link
Contributor

@mtojek mtojek commented Apr 25, 2022

Meta-issue: #319

This PR modifies the package-spec logic to support multiple package types under versions/1/. I think that it's more like a technical PR to open implementation for extending with more package types.

Fun fact: it's really concerning that we haven't required type: integration to be present.

@mtojek mtojek self-assigned this Apr 25, 2022
@elasticmachine
Copy link

elasticmachine commented Apr 25, 2022

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2022-04-25T15:50:16.576+0000

  • Duration: 2 min 26 sec

🤖 GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

@@ -9,7 +9,7 @@ import (
"io/fs"
)

//go:embed versions/1 versions/1/_dev versions/1/data_stream/_dev
//go:embed versions/1 versions/1/integration/_dev versions/1/integration/data_stream/_dev
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jsoriano Does Go ignore _underscore-dirs by design? I must have missed something here.

Copy link
Member

@jsoriano jsoriano Apr 25, 2022

Choose a reason for hiding this comment

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

Yes, there are certain parts of Go that ignore dirs prefixed with underscores and the testdata directory. For example I think that go get doesn't get these files by default, and go test ./... probably doesn't look for tests there.
I think that files referenced by embed are also seen by go get and some other commands that would ignore them otherwise.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, I guess it's a workaround then. The PR is ready for a review round.

@mtojek mtojek marked this pull request as ready for review April 25, 2022 15:51
@mtojek mtojek requested a review from a team as a code owner April 25, 2022 15:51
Copy link
Member

@jsoriano jsoriano left a comment

Choose a reason for hiding this comment

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

👍

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.

3 participants