From 6c0a6dd200eb62a82e2af9fb92f466a77b2b39f2 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Mon, 18 Apr 2022 18:10:36 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- doc/user/packages/composer_repository/index.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'doc/user/packages/composer_repository') diff --git a/doc/user/packages/composer_repository/index.md b/doc/user/packages/composer_repository/index.md index ea12b225717..901fb740717 100644 --- a/doc/user/packages/composer_repository/index.md +++ b/doc/user/packages/composer_repository/index.md @@ -171,6 +171,8 @@ When you publish: ## Install a Composer package +> Authorization to [download a package archive](../../../api/packages/composer.md#download-a-package-archive) was [introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/331601) in GitLab 14.10. + Install a package from the Package Registry so you can use it as a dependency. Prerequisites: @@ -354,6 +356,8 @@ used to access them: ## Troubleshooting +### Caching + To improve performance, Composer caches files related to a package. Note that Composer doesn't remove data by itself. The cache grows as new packages are installed. If you encounter issues, clear the cache with this command: @@ -362,6 +366,14 @@ this command: composer clearcache ``` +### Authorization requirement when using `composer install` + +In GitLab 14.9 and earlier, you did not require authorization to use `composer install` if you already had a generated `composer.lock`. +If you committed your `composer.lock`, you could do a `composer install` in CI without setting up credentials. + +In GitLab 14.10 and later, authorization is required for the [downloading a package archive](../../../api/packages/composer.md#download-a-package-archive) endpoint. +If you encounter a credentials prompt when you are using `composer install`, follow the instructions in the [install a composer package](#install-a-composer-package) section to create an `auth.json` file. + ## Supported CLI commands The GitLab Composer repository supports the following Composer CLI commands: -- cgit v1.2.3