Skip to content
This repository has been archived by the owner on Sep 19, 2020. It is now read-only.

Add self-dependency warning #328

Merged
merged 1 commit into from
Dec 15, 2015
Merged

Conversation

lamont-granquist
Copy link
Contributor

Chef does not require cookbooks to depend on themselves in order to
depsolve. In addition to this line being useless, it actually creates
problems with depsolving. The self-dependency can create a circular
dependency where every version of a cookbook will satisfy the circular
dependency on itself which can create a huge mess.

Ideally we need to fix this elsewhere in the ecosystem as well, but
for now this will at least surface the issue to cookbook authors who
use foodcritic.

@lamont-granquist
Copy link
Contributor Author

@acrmp @jaymzh this rule is at least 3 years overdue

@thommay
Copy link
Contributor

thommay commented Sep 28, 2015

👍

@tas50
Copy link
Contributor

tas50 commented Dec 3, 2015

@lamont-granquist We should add this for the 5.1 release. Update the rule number and lets get this merged.

@lamont-granquist lamont-granquist force-pushed the lcg/055-add-self-dependency-warning branch from aa200a5 to 6d85edf Compare December 15, 2015 01:06
@tas50
Copy link
Contributor

tas50 commented Dec 15, 2015

@lamont-granquist Travis is failing

Chef does not require cookbooks to depend on themselves in order to
depsolve.  In addition to this line being useless, it actually creates
problems with depsolving.  The self-dependency can create a circular
dependency where every version of a cookbook will satisfy the circular
dependency on itself which can create a huge mess.

Ideally we need to fix this elsewhere in the ecosystem as well, but
for now this will at least surface the issue to cookbook authors who
use foodcritic.
@lamont-granquist lamont-granquist force-pushed the lcg/055-add-self-dependency-warning branch from 6d85edf to 994e900 Compare December 15, 2015 19:45
@lamont-granquist
Copy link
Contributor Author

@tas50 still had a couple of references to "055" that needed to be "063" instead. fixed. squashed.

tas50 added a commit that referenced this pull request Dec 15, 2015
@tas50 tas50 merged commit 1b49eef into master Dec 15, 2015
@tas50 tas50 deleted the lcg/055-add-self-dependency-warning branch March 9, 2017 20:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants