[Feature] Read Astro srcDir
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 70/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- javascript, python, typescript
Research direction
Start with packages/core/src/repowise/core/ingestion/framework_facts/astro.py and compare its static facts with Nuxt’s nuxt_src_dir config reader. Then inspect tests/unit/ingestion/test_astro_resolver.py and docs/architecture/language-support.md:750. Done means literal srcDir and publicDir are handled with the default src, entry globs and root-relative URL lookup use the configured directories, and tests cover custom and default srcDir.
Written by the indexing model from the issue text.
Description
Summary
Astro's srcDir option is not read. The entry globs are fixed to src/pages/* and the other src/... conventions, so an app with srcDir: './app' has its pages, middleware and content config unanchored.
packages/core/src/repowise/core/ingestion/framework_facts/astro.py:12
entry_globs=(
"src/pages/*",
docs/architecture/language-support.md:750 lists srcDir as not read.
Mechanism
ASTRO is a static FrameworkFacts with no config reader. Nuxt has one (nuxt_src_dir) that reads a literal srcDir from the config text, and Astro has the same option with no equivalent.
Repro
// astro.config.mjs
export default defineConfig({ srcDir: './app' })
app/pages/index.astro and app/middleware.ts are reported as unreachable.
Impact
False dead-code findings and unresolved root-relative asset URLs for Astro apps that move their source directory.
Done looks like
- Read a literal
srcDir(andpublicDir) fromastro.config.{mjs,js,ts,mts}, defaultsrc. - Use it for
entry_globsand for the root-relative URL lookup noted inlanguage-support.md. - Update that sentence in the doc.
Tests
tests/unit/ingestion/test_astro_resolver.py: a custom srcDir and the default.
- Dominant language
- Python
- Stars
- 7.1k
- Forks
- 756
- Avg merge
- 21h 5m
- Merged PRs (30d)
- 797
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from repowise-dev/repowise
-
[Bug] Elixir `.formatter.exs`, `.credo.exs`, `config/*.exs` and `priv/**/*.exs` are reported as unreachable filesPossibly taken @ZYZ666-RGB claimed this 1 day ago. Openbug good first issue
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
repowise-dev/repowise#6296 · 1 comment ·
Maintainers usually reply within 1 day
-
[Bug] Coverage stack detection omits Swift, Dart, and Scala, falling through to UNKNOWN in evidence setupPossibly taken @RishabhIIITD claimed this 2 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
repowise-dev/repowise#5838 · 2 comments ·
Maintainers usually reply within 1 day
-
[Bug] PR-mined decisions store the decision sentence again as their rationalePossibly taken @suyashgitt claimed this 11 days ago. Openbug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
repowise-dev/repowise#5702 · 2 comments ·
Maintainers usually reply within 1 day
-
[Bug] CICS CSD `DEFINE _PGMLIST` startup programs (`_PGMPH`) are not rootsPossibly taken @dchaudhari7177 claimed this 34 days ago. Openbug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
repowise-dev/repowise#4477 ·
Maintainers usually reply within 1 day
-
[Bug] COBOL listing directives EJECT, SKIP1/SKIP2/SKIP3 and TITLE fail to parse and drop the rest of the filePossibly taken @dchaudhari7177 claimed this 34 days ago. Openbug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 91/100
repowise-dev/repowise#4474 ·
Maintainers usually reply within 1 day
All issues in repowise-dev/repowise
Similar issues
-
triage
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
kornia/kornia-rs#1416 · 1 comment ·
Maintainers usually reply within 2 days
-
ui
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
PolicyEngine/ai-inequality#64 ·
Maintainers usually reply within 1 day
-
LinearGaussianStateSpace.dist splits states and observations wrongly when the transition varies over timePossibly taken @PabloRoque claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
pymc-devs/pymc-extras#839 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day