You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes your Dagger module is publicly reachable, but not intended to be publicly used. There is no way to communicate this, so private modules pollute daggerverse search results, and users get no warning when installing them.
Solution
Add an optional private boolean flag to dagger.json
dagger init --private sets the flag
Daggerverse honors the flag by hiding (partially or totally) private modules in search results
dagger install returns an error on private modules, overrideable with -f
Activity
shykes commentedon Jul 26, 2024
cc @sagikazarmark 😁
sagikazarmark commentedon Jul 27, 2024
Yes, please!
Daggerverse should hide already visible modules.
I wonder if it would make sense to create a daggerverse specific section in dagger.json for future settings.
Private may also be a misleading name: my Open Source project CI isn't private, it's just not reusble. Same for my test modules.
So I'm thinking daggerverse.publish = false.
helderco commentedon Jul 27, 2024
package.json(node) usesprivatetoo: https://docs.npmjs.com/cli/v10/configuring-npm/package-json#private.I think it's reasonable to consider
privateto mean it's not meant to be shared or reused, even if the source code is open.If the code is in a private repo then the
privateconfig here isn't even necessary.