Commit a6d31c65 authored by Harsh Chouraria's avatar Harsh Chouraria Committed by Suzanne Selhorn

Document duplicate-handling of generic packages

The package file model in the database does not rely on the the package
name, version, or filename as its unique key.

As a result, it permits uploading many packages under the same entry,
while retrieving the most recently added entry when fetched back.

The UI also shows all of the separately stored entries.
parent 0bfcf6c3
...@@ -27,6 +27,8 @@ or [CI job token](../../../api/README.md#gitlab-ci-job-token). ...@@ -27,6 +27,8 @@ or [CI job token](../../../api/README.md#gitlab-ci-job-token).
When you publish a package file, if the package does not exist, it is created. When you publish a package file, if the package does not exist, it is created.
If a package with the same name, version, and filename already exists, it is also created. It does not overwrite the existing package.
Prerequisites: Prerequisites:
- You need to [authenticate with the API](../../../api/README.md#authentication). - You need to [authenticate with the API](../../../api/README.md#authentication).
...@@ -62,7 +64,9 @@ Example response: ...@@ -62,7 +64,9 @@ Example response:
## Download package file ## Download package file
Install a package file. Download a package file.
If multiple packages have the same name, version, and filename, then the most recent one is retrieved.
Prerequisites: Prerequisites:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment