{"id":19238526,"url":"https://github.com/tmpfs/spack-infinite-loop-mvp","last_synced_at":"2025-02-23T13:52:50.438Z","repository":{"id":66127947,"uuid":"381533173","full_name":"tmpfs/spack-infinite-loop-mvp","owner":"tmpfs","description":"Reproduce an spack infinite loop with certain module graphs","archived":false,"fork":false,"pushed_at":"2021-06-30T06:04:06.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-05T02:12:15.925Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tmpfs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-30T00:42:38.000Z","updated_at":"2021-07-08T09:10:18.000Z","dependencies_parsed_at":"2023-03-10T15:15:38.951Z","dependency_job_id":null,"html_url":"https://github.com/tmpfs/spack-infinite-loop-mvp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmpfs%2Fspack-infinite-loop-mvp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmpfs%2Fspack-infinite-loop-mvp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmpfs%2Fspack-infinite-loop-mvp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmpfs%2Fspack-infinite-loop-mvp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmpfs","download_url":"https://codeload.github.com/tmpfs/spack-infinite-loop-mvp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240324059,"owners_count":19783453,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T16:33:12.404Z","updated_at":"2025-02-23T13:52:50.413Z","avatar_url":"https://github.com/tmpfs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spack Infinite Loop\n\nThis repository reproduces a bug with `spack` that causes it to loop infinitely on certain module graphs.\n\nFor more information see [this issue](https://github.com/swc-project/swc/issues/1756).\n\n---\n\nFirst install dependencies with `yarn install` then run:\n\n```\nnpx spack\n```\n\nIn another terminal run `top` and notice that `spack` is using all available CPU cycles.\n\n## Details\n\nThis is the module graph:\n\n```\nindex.js\n└── ./ui/store/actions\n    ├── ../pages/send/send.utils\n    │   ├── ../../helpers/utils/token-util\n    │   │   └── ./confirm-tx.util\n    │   │       └── ../../store/actions (∞ -\u003e /home/muji/git/consensys/spack-infinite-loop-mvp/ui/store/actions.js)\n    │   └── ./send.constants\n    │       └── ../../../app/scripts/lib/util\n    │           └── ../../../shared/constants/app\n    ├── ../../app/scripts/lib/util\n    │   └── ../../../shared/constants/app\n    └── ../ducks/alerts/unconnected-account\n        └── ../../store/actions (∞ -\u003e /home/muji/git/consensys/spack-infinite-loop-mvp/ui/store/actions.js)\n```\n\nWe can clearly see that the cycle is on `../../store/actions` but the bug itself is triggered by *this particular module graph*. To verify this comment out *any import* in the module graph and the build will succeed - even leaf nodes like `../../../shared/constants/app`!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmpfs%2Fspack-infinite-loop-mvp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmpfs%2Fspack-infinite-loop-mvp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmpfs%2Fspack-infinite-loop-mvp/lists"}