René's URL Explorer Experiment


Title: Build silently produces broken firmware when submodules aren't initialised (dangling symlinks) · Issue #149 · MicroPythonOS/MicroPythonOS · GitHub

Open Graph Title: Build silently produces broken firmware when submodules aren't initialised (dangling symlinks) · Issue #149 · MicroPythonOS/MicroPythonOS

X Title: Build silently produces broken firmware when submodules aren't initialised (dangling symlinks) · Issue #149 · MicroPythonOS/MicroPythonOS

Description: Summary internal_filesystem/lib/nostr is a symlink to ../../micropython-nostr/nostr/. If the micropython-nostr submodule hasn't been populated (i.e. the user cloned MPOS without --recurse-submodules and didn't run git submodule update --...

Open Graph Description: Summary internal_filesystem/lib/nostr is a symlink to ../../micropython-nostr/nostr/. If the micropython-nostr submodule hasn't been populated (i.e. the user cloned MPOS without --recurse-submodule...

X Description: Summary internal_filesystem/lib/nostr is a symlink to ../../micropython-nostr/nostr/. If the micropython-nostr submodule hasn't been populated (i.e. the user cloned MPOS without --recurse-submo...

Opengraph URL: https://github.com/MicroPythonOS/MicroPythonOS/issues/149

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Build silently produces broken firmware when submodules aren't initialised (dangling symlinks)","articleBody":"## Summary\n\n`internal_filesystem/lib/nostr` is a symlink to `../../micropython-nostr/nostr/`. If the `micropython-nostr` submodule hasn't been populated (i.e. the user cloned MPOS without `--recurse-submodules` and didn't run `git submodule update --init --recursive` after), the symlink dangles, and the manifest's `freeze('../internal_filesystem/lib', '')` step **silently skips it** — no error, no warning. The build succeeds and produces a firmware that's missing the `nostr` module.\n\nAny app that depends on `nostr` (e.g. Lightning Piggy's `nwc_wallet.py`) then fails at runtime with `ImportError: no module named 'nostr'` when launched. From the user's perspective the app just doesn't open — no obvious clue from the build log.\n\nThis bit me while testing an unrelated firmware change; LP wouldn't launch after a fresh build and it took a serial-REPL session to surface the actual cause.\n\n## Reproduction\n\n```bash\ngit clone https://github.com/MicroPythonOS/MicroPythonOS.git\ncd MicroPythonOS\ngit submodule update --init lvgl_micropython  # but not micropython-nostr\n./scripts/build_mpos.sh esp32s3\n# Build succeeds. Flash the firmware. Try to launch Lightning Piggy. ImportError.\n```\n\nConfirm by inspecting `frozen_content.c`:\n\n```bash\ngrep -c nostr lvgl_micropython/lib/micropython/ports/esp32/build-*/frozen_content.c\n# 0 — the freezer silently dropped the dangling symlink\n```\n\nThe same trap potentially applies to any other symlink under `internal_filesystem/lib/` that points into an un-init'd submodule. Today only `nostr` is structured this way (`find internal_filesystem/lib -maxdepth 2 -type l` is just the one entry), but the failure mode is generic.\n\n## Suggested fix\n\nTwo complementary safety-nets, take either or both:\n\n1. **`build_mpos.sh` pre-flight check** — before invoking `make.py`, walk `internal_filesystem/lib/` for symlinks and verify each one resolves. Abort with a clear error like:\n   ```\n   ERROR: internal_filesystem/lib/nostr -\u003e ../../micropython-nostr/nostr/\n          target does not exist. Run:\n              git submodule update --init --recursive\n          and try again.\n   ```\n2. **Eager submodule init at the top of `build_mpos.sh`** — `git submodule update --init` for the MPOS-side siblings that are known build inputs (`micropython-nostr`, `secp256k1-embedded-ecdh`, `c_mpos`, `micropython-camera-API`). Cheap on subsequent builds (no-op if already populated), bulletproof on fresh clones.\n\nHappy to send a PR for either approach if there's a preference.","author":{"url":"https://github.com/bitcoin3us","@type":"Person","name":"bitcoin3us"},"datePublished":"2026-05-30T20:38:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/149/MicroPythonOS/issues/149"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:775068dd-9d3b-e24b-8a01-6d2ea8f58dd9
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC818:310BDB:43BC597:5EBA337:6A4F703D
html-safe-nonce06905328e9295b98c09a95887b5c62914a3fc30a6eaeb2832a119d3fc12df0bf
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODE4OjMxMEJEQjo0M0JDNTk3OjVFQkEzMzc6NkE0RjcwM0QiLCJ2aXNpdG9yX2lkIjoiNTAyMzQ3MDI1MzE0MjY2NzMyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac4081709723cdc8e832f87ecbce1fff6d7fee028c0ec885cabd413997fdcb3582
hovercard-subject-tagissue:4555626223
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/MicroPythonOS/MicroPythonOS/149/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a7a8e201da9cb08c5b6872d8ec5368e40d4e58fdf39c469969e1c9a8e4967777/MicroPythonOS/MicroPythonOS/issues/149
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a7a8e201da9cb08c5b6872d8ec5368e40d4e58fdf39c469969e1c9a8e4967777/MicroPythonOS/MicroPythonOS/issues/149
og:image:altSummary internal_filesystem/lib/nostr is a symlink to ../../micropython-nostr/nostr/. If the micropython-nostr submodule hasn't been populated (i.e. the user cloned MPOS without --recurse-submodule...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebitcoin3us
hostnamegithub.com
expected-hostnamegithub.com
Noneb92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9
turbo-cache-controlno-preview
go-importgithub.com/MicroPythonOS/MicroPythonOS git https://github.com/MicroPythonOS/MicroPythonOS.git
octolytics-dimension-user_id213598128
octolytics-dimension-user_loginMicroPythonOS
octolytics-dimension-repository_id975472483
octolytics-dimension-repository_nwoMicroPythonOS/MicroPythonOS
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id975472483
octolytics-dimension-repository_network_root_nwoMicroPythonOS/MicroPythonOS
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4b249b445842943ed31549e027f57a8ade9881ed
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/MicroPythonOS/MicroPythonOS/issues/149#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FMicroPythonOS%2FMicroPythonOS%2Fissues%2F149
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FMicroPythonOS%2FMicroPythonOS%2Fissues%2F149
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=MicroPythonOS%2FMicroPythonOS
Reloadhttps://github.com/MicroPythonOS/MicroPythonOS/issues/149
Reloadhttps://github.com/MicroPythonOS/MicroPythonOS/issues/149
Reloadhttps://github.com/MicroPythonOS/MicroPythonOS/issues/149
Please reload this pagehttps://github.com/MicroPythonOS/MicroPythonOS/issues/149
MicroPythonOS https://github.com/MicroPythonOS
MicroPythonOShttps://github.com/MicroPythonOS/MicroPythonOS
Notifications https://github.com/login?return_to=%2FMicroPythonOS%2FMicroPythonOS
Fork 82 https://github.com/login?return_to=%2FMicroPythonOS%2FMicroPythonOS
Star 737 https://github.com/login?return_to=%2FMicroPythonOS%2FMicroPythonOS
Code https://github.com/MicroPythonOS/MicroPythonOS
Issues 23 https://github.com/MicroPythonOS/MicroPythonOS/issues
Pull requests 7 https://github.com/MicroPythonOS/MicroPythonOS/pulls
Discussions https://github.com/MicroPythonOS/MicroPythonOS/discussions
Actions https://github.com/MicroPythonOS/MicroPythonOS/actions
Projects https://github.com/MicroPythonOS/MicroPythonOS/projects
Security and quality 0 https://github.com/MicroPythonOS/MicroPythonOS/security
Insights https://github.com/MicroPythonOS/MicroPythonOS/pulse
Code https://github.com/MicroPythonOS/MicroPythonOS
Issues https://github.com/MicroPythonOS/MicroPythonOS/issues
Pull requests https://github.com/MicroPythonOS/MicroPythonOS/pulls
Discussions https://github.com/MicroPythonOS/MicroPythonOS/discussions
Actions https://github.com/MicroPythonOS/MicroPythonOS/actions
Projects https://github.com/MicroPythonOS/MicroPythonOS/projects
Security and quality https://github.com/MicroPythonOS/MicroPythonOS/security
Insights https://github.com/MicroPythonOS/MicroPythonOS/pulse
Build silently produces broken firmware when submodules aren't initialised (dangling symlinks)https://github.com/MicroPythonOS/MicroPythonOS/issues/149#top
https://github.com/bitcoin3us
bitcoin3ushttps://github.com/bitcoin3us
on May 30, 2026https://github.com/MicroPythonOS/MicroPythonOS/issues/149#issue-4555626223
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.