Clarify allowed files and extensions when adding a package #2421
Labels
📖 documentation
Improvements or additions to documentation
hacktoberfest
This might be a good issue for a hacktoberfest participant to handle.
help wanted
Want to contribute? We recommend these issues.
Milestone
Description
Filtering exists for files uploaded when a new package is added. These filters are a combination of conditionals and regular expressions that exist in multiple places. The definition of filenames and extensions that are allowed should be better defined, unified, and put into a single location.
Here are the three locations I've found thus far:
gno/gnovm/pkg/gnolang/nodes.go
Lines 1110 to 1117 in 31a5f2e
gno/tm2/pkg/std/memfile.go
Lines 42 to 46 in 31a5f2e
gno/gno.land/pkg/gnoweb/gnoweb.go
Lines 114 to 117 in 31a5f2e
Then there is also the addition of the license constant added as a temporary fix for exposing a
LICENSE
file via gnoweb:gno/tm2/pkg/std/memfile.go
Lines 107 to 109 in 289785b
The text was updated successfully, but these errors were encountered: