Skip to content

Skip repo discovery when --zip is supplied#3438

Merged
P1llus merged 3 commits intomainfrom
zip_skip_root
Apr 13, 2026
Merged

Skip repo discovery when --zip is supplied#3438
P1llus merged 3 commits intomainfrom
zip_skip_root

Conversation

@P1llus
Copy link
Copy Markdown
Member

@P1llus P1llus commented Apr 8, 2026

With elastic-package install, we identify the correct package/folder, build it and install it.

However when --zip is supplied we skip the actual usage of the repo root and its not required anywhere, making the check redundant for users that simply wants to install a zipfile having to be in our package root.

The minor change simply skips that validation at the correct location, allowing installation with --zip from anywhere, no change in existing behavior.

@P1llus
Copy link
Copy Markdown
Member Author

P1llus commented Apr 8, 2026

New behavior tested:

cd /tmp && /tmp/elastic-package-test install -z /home/marius/projects/generated_integrations/build/packages/buildkite-0.1.0.zip -v 2>&1

2026/04/08 11:13:30  WARN CommitHash is undefined, in both /home/marius/.elastic-package/version and the compiled binary, config may be out of date.
2026/04/08 11:13:30 DEBUG Enable verbose logging
2026/04/08 11:13:30 DEBUG latest version (cached): v0.122.0. Download from: https://github.com/elastic/elastic-package/releases/tag/v0.122.0 (Timestamp 2026-04-08 10:50:15.491933965 +0200 CEST)
2026/04/08 11:13:30 DEBUG Connecting with Kibana host from current profile (profile: default, host: "https://127.0.0.1:5601")
2026/04/08 11:13:30 DEBUG Validating built .zip package (path: /home/marius/projects/generated_integrations/build/packages/buildkite-0.1.0.zip)
2026/04/08 11:13:30 DEBUG Skip validation of the built .zip package

Old behavior (when package root is not found):

elastic-package install -z ./projects/generated_integrations/build/packages/airtable-0.1.0.zip

2026/04/08 11:01:59  WARN CommitHash is undefined, in both /home/marius/.elastic-package/version and the compiled binary, config may be out of date.
Error: locating repository root failed: root not found: file does not exist

@mrodm mrodm requested a review from a team April 8, 2026 09:57
Copy link
Copy Markdown
Contributor

@mrodm mrodm left a comment

Choose a reason for hiding this comment

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

Thanks @P1llus !

@P1llus
Copy link
Copy Markdown
Member Author

P1llus commented Apr 9, 2026

/test

1 similar comment
@P1llus
Copy link
Copy Markdown
Member Author

P1llus commented Apr 13, 2026

/test

@elasticmachine
Copy link
Copy Markdown
Collaborator

elasticmachine commented Apr 13, 2026

💛 Build succeeded, but was flaky

Failed CI Steps

History

@P1llus P1llus merged commit d8ac95a into main Apr 13, 2026
5 checks passed
@P1llus P1llus deleted the zip_skip_root branch April 13, 2026 12:09
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