Skip to content
This repository was archived by the owner on Sep 17, 2023. It is now read-only.

fix(make-depend)!: remove use of force-local #112

Merged

Conversation

EricCrosson
Copy link
Contributor

This commit removes hard-coded use of lerna bootstrap's
--force-local1 command, so that monorepos that don't want to
opt in to this behavior are not forced to.

For projects that wish to include the --force-local flag on every
invocation to lerna bootstrap, perhaps to prevent dependency
confusion attacks, we recommend specifying this in the lerna
manifest. For example, your lerna.json could look like

{
  "packages": [
    "packages/*"
  ],
  "command": {
    "bootstrap": {
      "forceLocal": true
    }
  }
}

To prevent the case where a project was expecting --force-local
to be applied, but not specifying this in the configuration file,
we consider this a breaking change.

BREAKING CHANGE: do not specify --force-local in makefiles generated by make-depend

Footnotes

  1. https://github.com/lerna/lerna/blob/main/commands/bootstrap/README.md#--force-local

This commit removes hard-coded use of `lerna bootstrap`'s
`--force-local`[^1] command, so that monorepos that don't want to
opt in to this behavior are not forced to.

For projects that wish to include the `--force-local` flag on every
invocation to `lerna bootstrap`, perhaps to prevent dependency
confusion attacks, we recommend specifying this in the lerna
manifest. For example, your lerna.json could look like

```
{
  "packages": [
    "packages/*"
  ],
  "command": {
    "bootstrap": {
      "forceLocal": true
    }
  }
}
```

To prevent the case where a project was expecting `--force-local`
to be applied, but not specifying this in the configuration file,
we consider this a breaking change.

[^1]: https://github.com/lerna/lerna/blob/main/commands/bootstrap/README.md#--force-local

BREAKING CHANGE: do not specify `--force-local` in makefiles generated by `make-depend`
Copy link
Contributor

@bitgopatmcl bitgopatmcl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@EricCrosson EricCrosson merged commit ce560c5 into master Mar 28, 2022
@EricCrosson EricCrosson deleted the remove-non-default-setting-in-generated-makefile branch March 28, 2022 16:00
@github-actions
Copy link

🎉 This PR is included in version 4.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants