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
ConfigCommand.Flags().String("composer-version", nodeps.ComposerDefault, `Specify override for Composer version in web container. This may be "", "1", "2", "2.2", "stable", "preview", "snapshot" or a specific version`)
ConfigCommand.Flags().String("composer-version", nodeps.ComposerDefault, `Specify override for Composer version in web container. This may be "", "2", "2.2", "stable", "preview", "snapshot" or a specific version`)
Copy file name to clipboardExpand all lines: docs/content/users/configuration/config.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
@@ -92,7 +92,7 @@ Composer version for the web container and the [`ddev composer`](../usage/comman
92
92
93
93
| Type | Default | Usage
94
94
| -- | -- | --
95
-
| :octicons-file-directory-16: project | `2` | Can be `2`, `1`, or empty (`""`) for latest major version at container build time.<br><br>Can also be the LTS version `2.2` (there's no other `2.x` LTS), an explicit version like `2.9.3`, or a keyword like `stable`, `preview` or `snapshot`. See [Composer documentation](https://getcomposer.org/doc/03-cli.md#self-update-selfupdate).
95
+
| :octicons-file-directory-16: project | `2` | Can be `2` or empty (`""`) for latest major version at container build time.<br><br>Can also be the LTS version `2.2` (there's no other `2.x` LTS), an explicit version like `2.9.3`, or a keyword like `stable`, `preview` or `snapshot`. See [Composer documentation](https://getcomposer.org/doc/03-cli.md#self-update-selfupdate).
96
96
97
97
!!!warning "Composer version is cached at container build time"
98
98
DDEV installs Composer at container build time and caches it. If you use a non-specific version like `2`, `2.2`, `""` (empty), or `stable`, DDEV installs the latest available version in that range at build time.
Copy file name to clipboardExpand all lines: docs/content/users/usage/commands.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
@@ -372,7 +372,7 @@ Flags:
372
372
* `--bind-all-interfaces`: Bind host ports on all interfaces, not only on the localhost network interface.
373
373
* `--composer-root`: The relative path, from the project root, to the directory containing `composer.json`. (This is where all Composer-related commands are executed.)
374
374
* `--composer-root-default`: Unset a `web` service Composer root directory override, the same as `--composer-root=""`.
375
-
* `--composer-version`: Specify override for Composer version in the web container. This may be `""`, `"1"`, `"2"`, `"2.2"`, `"stable"`, `"preview"`, `"snapshot"`, or a specific version.
375
+
* `--composer-version`: Specify override for Composer version in the web container. This may be `""`, `"2"`, `"2.2"`, `"stable"`, `"preview"`, `"snapshot"`, or a specific version.
376
376
* `--corepack-enable`: Whether to run `corepack enable` on Node.js configuration.
377
377
* `--database`: Specify the database `type:version` to use (see [default](../configuration/config.md#database)).
378
378
* `--db-working-dir`: Override the default working directory for the `db` service.
assert.True(strings.HasPrefix(stdout, "Composer 2") ||strings.HasPrefix(stdout, "Composer version 2"), "Composer version not the expected Composer 2: %v", stdout)
128
128
129
-
// Make sure it does the right thing with 1.x
129
+
// With version "1" we should get Composer v2.2 LTS
130
+
// See https://blog.packagist.com/shutting-down-packagist-org-support-for-composer-1-x/
util.WarningOnce(`Project '%s' now uses Composer v2.2 LTS. Composer v1 is no longer supported by Packagist, see https://blog.packagist.com/shutting-down-packagist-org-support-for-composer-1-x/`, app.Name)
271
+
}
272
+
265
273
// We now want to reserve the port we're writing for HostDBPort and HostWebserverPort and so they don't
util.WarningOnce(`Project '%s' now uses Composer v2.2 LTS. Composer v1 is no longer supported by Packagist, see https://blog.packagist.com/shutting-down-packagist-org-support-for-composer-1-x/
868
+
Run 'ddev config --auto' to remove this Composer warning.`, app.Name)
869
+
}
858
870
}
859
871
860
872
// FixObsolete removes files that may be obsolete, etc.
0 commit comments