Open wojtekmach opened 2 years ago
I like they way it works currently because it pushes you in the direction of filling in the information but if you don't really want to you can add the empty values.
I think the links section is fine if empty, but we are warning (and soon will be raising for new packages) on missing licenses. The description does seem like something we'd want to pressure users into including. (none of this applies to private orgs.)
If we do validate the description more deeply, how? ie. If I just add 1 character, is that enough? why or why not? Warning (vs raising) might not prevent people that really want to leave it empty, but I think takes what we do now (making sure the key exists) to the next logical level.
Should we have different validation depending on if you are publishing to an organization or a public package? How would that work for mix hex.build
? Maybe we should move validation out of the build step and into the publish step by parsing the already built package in mix hex.publish
?
Hi, I stumbled upon this issue when trying to build a package locally. The documentation for hex.build (https://hexdocs.pm/hex/Mix.Tasks.Hex.Build.html) suggests that the description, links and license are not required. The docs could be updated to reflect the fact that some values (even if empty) have to be provided for these keys.
A brand new Mix project would trigger these warnings when executing
mix hex.build
:It is very easy to make the build pass by giving these "zero" values:
which makes me think, should we either:
I think option 3 is the most appropriate. Thoughts?