-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Building deb packages fails on Windows #47007
Comments
Pinging @elastic/es-core-infra |
I tried updating to the latest release of the plugin but the problem is still there. Looking at the plugin implementation this happens because the Gradle API |
The reason the packages are build on windows in the first place is that we run some sanity checks against it, but we skip this on Windows anyhow since the extraction tools are not available so we could work around the issue by making the task dependencies conditional too. |
Relates to elastic#47007 . the `gradle-ospackage-plugin` plugin doesn't properly support symlink on windows. This PR changes the way we configure tasks to prevent building these packages as part of a windows check.
Relates to #47007 . the `gradle-ospackage-plugin` plugin doesn't properly support symlink on windows. This PR changes the way we configure tasks to prevent building these packages as part of a windows check.
Relates to #47007 . the `gradle-ospackage-plugin` plugin doesn't properly support symlink on windows. This PR changes the way we configure tasks to prevent building these packages as part of a windows check.
Relates to #47007 . the `gradle-ospackage-plugin` plugin doesn't properly support symlink on windows. This PR changes the way we configure tasks to prevent building these packages as part of a windows check.
@mark-vieira @rjernst to summaries, the upstream plugin has a bug when dealing with symlinks on Windows. Do you think it's worth pursuing a fix upstream for this ? I'm leaning to wards saying it's not, since there should never be a need to build deb packages on windows. |
I wouldn't go so far as saying you never want to build a deb on Windows. That might be the release machine. Just as we build both RPM and DEB on our worker regardless of whether it's RedHat or Debian based. That said, Windows support for unix packaging tools is probably not high priority but there might be folks doing development on Windows that might want the ability to build on Windows. I'll defer to @rjernst's judgement here. |
We always build our releases on the same system (ubuntu based IIRC), and the vast majority of developers use a nix compatible OS. I think dropping support for building rpm/deb on windows is fine, as long as the build gracefully skips it on that platform (like assumeFalse basically). |
I'm going to close this issue then, since there's no further work planned. |
I'm not sure we've resolved this. We should disable this on windows or have it fail gracefully with a useful message. |
* Don't build packages on non Linux Closes #47007 * Explicitly exclude windows only
* Don't build packages on non Linux Closes #47007 * Explicitly exclude windows only
The stack trace of the failure is :
https://gradle-enterprise.elastic.co/s/sidkgld4awq4m/failure?openFailures=WzBd&openStackTraces=WzFd#top=0
The text was updated successfully, but these errors were encountered: