Elastic Agent cannot be packaged without PACKAGES env var #6584
Labels
bug
Something isn't working
Team:Elastic-Agent
Label for the Agent team
Team:Elastic-Agent-Control-Plane
Label for the Agent Control Plane team
Packaging agent using a command like
returns an error
... package ran for 283.017µs Error: No packages were successfully downloaded. You may be building against an invalid or unreleased version. version=9.0.0-SNAPSHOT. If this is an unreleased version, try SNAPSHOT=true or EXTERNAL=false
It looks like the problem has been introduced by this change
https://github.com/elastic/elastic-agent/pull/6016/files#diff-520109d035a196d29d0a86e9c4e6c98e98abf056141b84df68c0d48167b87b25R1059
When no PACKAGES env var is speciified
packageTypes
is empty so the for loop terminates immediately.In the rest of the packaging code and before such change an empty PACKAGES env var meant that ALL the packages should be produced.
The text was updated successfully, but these errors were encountered: