Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disallow dependency cycles #13442

Merged
merged 4 commits into from Jun 9, 2021
Merged

Conversation

nicolo-ribaudo
Copy link
Member

@nicolo-ribaudo nicolo-ribaudo commented Jun 9, 2021

Q                       A
Fixed Issues?
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

We currently cannot publish because of a cycle. I'll push the cycle fix here, but first I want to see CI failing.

@nicolo-ribaudo nicolo-ribaudo added PR: Internal 🏠 A type of pull request used for our changelog categories Priority: High labels Jun 9, 2021
@codesandbox-ci
Copy link

codesandbox-ci bot commented Jun 9, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 0e454a1:

Sandbox Source
babel-repl-custom-plugin Configuration
babel-plugin-multi-config Configuration

@babel-bot
Copy link
Collaborator

babel-bot commented Jun 9, 2021

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/46760/

"@babel/types": "workspace:^7.13.16"
},
"TODO": "The @babel/traverse dependency is only needed for the NodePath TS type. We can consider exporting it from @babel/core.",
"devDependencies": {
"@babel/traverse": "workspace:*"
Copy link
Member Author

Choose a reason for hiding this comment

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

Traverse is only used for a type import:

import * as t from "@babel/types";
import type { NodePath } from "@babel/traverse";

Copy link
Member

@hzoo hzoo left a comment

Choose a reason for hiding this comment

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

command at nicolo-ribaudo/yarn-plugin-babel-release-tool@e0194c8

looks good if CI passes

@nicolo-ribaudo
Copy link
Member Author

It seems that this also fixes the failures on main: https://app.circleci.com/pipelines/github/babel/babel/7240/workflows/a496e83a-f439-4218-a8ba-90977b9427fe

The "publish verdaccio" step was taking 5 hours (and then it was killed) because of an infinite loop in cycle detection, fixed by nicolo-ribaudo/yarn-plugin-babel-release-tool@e0194c8#diff-84e45058636f9e228c1d37fa19e6c943a505efa6e144a64ebb25df629233ff84R134-R135.

@nicolo-ribaudo nicolo-ribaudo merged commit a59522d into babel:main Jun 9, 2021
@nicolo-ribaudo nicolo-ribaudo deleted the dep-cycles branch June 9, 2021 22:48
@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Sep 9, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Internal 🏠 A type of pull request used for our changelog categories Priority: High
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants