-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Features should provide a meaningful error message if it's not supported by a devcontainer image #765
Comments
Hi 👋 Thanks for raising this issue. Adding error messages for unsupported OS makes complete sense to me 👍 |
Currently, there are three officially supported devcontainers:
The following images are included in automated testing:
When testing the "OS Not Supported Feature, should Alpine be included in the above list of tested images? Following the above pattern, these images would be included:
While the Alpine devcontainer base image includes Should we include only the Alpine devcontainer base image or should we follow common-utils approach by using Much like While this may be outside the scope of the "Operating System Not Supported Feature", I feel that choosing an appropriate testing strategy is important before getting started. As always, constructive feedback is welcome. |
If anyone has suggestions for testing "the inability to install a feature," I'm all ears. |
This spec proposal for supported Architectures/OS (devcontainers/spec#58) seems to be similar to what you're looking for, although it's in backlog right now. I like the idea of common-util's "preamble" script, although there are already so many features that requiring something new might be difficult to enforce. Another idea (which is also a proposal) would be to have this preamble be a feature library (see: spec/proposals/feature-library.md) so it's easier to add. For the time being, I think I'll just use your preamble idea for the features I support. I do admit I don't really think of Alpine/non-debian or ubuntu images when making features though, maybe I'll add some support when I have time. |
Most Features are only supported on Debian-based devcontainer images. Adding these features to an Alpine or Red Hat devcontainer often results in error messages such as "dpkg: not found."
An error message stating that the OS isn't supported would be more intuitive.
Given that the common-utils script already supports this (see below), it shouldn't be difficult to adapt in other features.
Requiring such a "preamble" may encourage developers to support other base devcontainer images, much like common-utils does.
The text was updated successfully, but these errors were encountered: