Skip to content

Conversation

@vlastavesely
Copy link
Contributor

  • bug fix? yes
  • BC break? no

Field source is not mandatory. For example, my local repositories
mirrored from a path do not have the field in composer.lock. Refs
to source and dist are the same on all my dependencies and even
in file Locker.php of composer/composer package there is the
retrieval of reference ID fall-backed by using dist field.

https://github.com/composer/composer/blob/28e41d094e78e0a60dc5123ee572701154008848/src/Composer/Package/Locker.php#L417

Field `source` is not mandatory. For example, my local repositories
mirrored from a path do not have the field in `composer.lock`. Refs
to `source` and `dist` are the same on all my dependencies and even
in file `Locker.php` of `composer/composer` package there is the
retrieval of reference ID fall-backed by using `dist` field.

https://github.com/composer/composer/blob/28e41d094e78e0a60dc5123ee572701154008848/src/Composer/Package/Locker.php#L417
@dg
Copy link
Member

dg commented Mar 30, 2018

Thanks

@dg dg merged commit 9c46d3b into nette:master Mar 30, 2018
@vlastavesely vlastavesely deleted the composer-fix branch March 30, 2018 13:16
dg pushed a commit that referenced this pull request Apr 3, 2018
…287)

Field `source` is not mandatory. For example, my local repositories
mirrored from a path do not have the field in `composer.lock`. Refs
to `source` and `dist` are the same on all my dependencies and even
in file `Locker.php` of `composer/composer` package there is the
retrieval of reference ID fall-backed by using `dist` field.

https://github.com/composer/composer/blob/28e41d094e78e0a60dc5123ee572701154008848/src/Composer/Package/Locker.php#L417
dg pushed a commit that referenced this pull request Apr 6, 2018
…287)

Field `source` is not mandatory. For example, my local repositories
mirrored from a path do not have the field in `composer.lock`. Refs
to `source` and `dist` are the same on all my dependencies and even
in file `Locker.php` of `composer/composer` package there is the
retrieval of reference ID fall-backed by using `dist` field.

https://github.com/composer/composer/blob/28e41d094e78e0a60dc5123ee572701154008848/src/Composer/Package/Locker.php#L417
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants