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
packages/generic: Do not restrict package versions to SemVer (#20414)
There are existing packages out there whose version do not conform to SemVer, yet, one would like to have them available in a generic package repository. To this end, remove the SemVer restriction on package versions when using the Generic package registry, and replace it with a check that simply makes sure the version isn't empty.
Signed-off-by: Gergely Nagy <[email protected]>
Co-authored-by: KN4CK3R <[email protected]>
Co-authored-by: 6543 <[email protected]>
Copy file name to clipboardExpand all lines: docs/content/doc/packages/generic.en-us.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ PUT https://gitea.example.com/api/packages/{owner}/generic/{package_name}/{packa
37
37
| ----------------- | ----------- |
38
38
|`owner`| The owner of the package. |
39
39
|`package_name`| The package name. It can contain only lowercase letters (`a-z`), uppercase letter (`A-Z`), numbers (`0-9`), dots (`.`), hyphens (`-`), or underscores (`_`). |
40
-
|`package_version`| The package version as described in the [SemVer](https://semver.org/) spec. |
40
+
|`package_version`| The package version, a non-empty string. |
41
41
|`file_name`| The filename. It can contain only lowercase letters (`a-z`), uppercase letter (`A-Z`), numbers (`0-9`), dots (`.`), hyphens (`-`), or underscores (`_`). |
0 commit comments