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

buildables block type? #378

Open
korrat opened this issue Jun 7, 2024 · 1 comment
Open

buildables block type? #378

korrat opened this issue Jun 7, 2024 · 1 comment

Comments

@korrat
Copy link

korrat commented Jun 7, 2024

Both installables and runnables block types provide a build action. However, both block types also provide further actions. This makes them less than ideal for some use cases, such as checks or, in the case of Rust projects, a separate derivation for cargoArtifacts.

A simple buildable block type may be helpful here. This block type would only provide the build action. Projects could use it to provide a set of dependencies that other blocks of the cell could use.

Alternatively, both the anything and functions block types could be used for this purpose. In the case of checks, however, that means that checks can no longer be run individually.

@blaggacao
Copy link
Collaborator

Both installables and runnables block types provide a build action. However, both block types also provide further actions. This makes them less than ideal for some use cases, such as checks or, in the case of Rust projects, a separate derivation for cargoArtifacts.

Agreed. This is a long-standing semantic mismatch that I just didn't bother to resolve.

I think a low-risk/low-maint and backward-compatible approach would be to perpetuate, but alleviate this issue by just adding your suggested buildable block type.

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

No branches or pull requests

2 participants