Skip to content

fix: detect symlinked files inside assets directory for follow_symlink warning#8474

Merged
dmadisetti merged 2 commits intomainfrom
ms/check-symlink-one-level
Feb 27, 2026
Merged

fix: detect symlinked files inside assets directory for follow_symlink warning#8474
dmadisetti merged 2 commits intomainfrom
ms/check-symlink-one-level

Conversation

@mscolnick
Copy link
Contributor

The previous check only detected when the assets/ directory itself was a
symlink. With pdm/uv, the directory is real but files inside are symlinks,
causing silent 404s. Now samples files within the directory too.

…k warning

The previous check only detected when the assets/ directory itself was a
symlink. With pdm/uv, the directory is real but files inside are symlinks,
causing silent 404s. Now samples files within the directory too.
@vercel
Copy link

vercel bot commented Feb 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
marimo-docs Ready Ready Preview, Comment Feb 26, 2026 2:59pm

Request Review

@mscolnick
Copy link
Contributor Author

cc @drewp

@mscolnick mscolnick marked this pull request as ready for review February 26, 2026 16:16
@mscolnick mscolnick added the bug Something isn't working label Feb 26, 2026
@mscolnick mscolnick requested a review from dmadisetti February 26, 2026 17:21
for i, child in enumerate(directory.iterdir()):
if child.is_symlink():
return True
if i >= 1:
Copy link
Collaborator

Choose a reason for hiding this comment

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

1 directory is not a very large sample? would maybe move to kwarg if we need to change it in the future

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is 2 items. i don't want to read a bunch of files on startup

Copy link
Contributor Author

Choose a reason for hiding this comment

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

and only provides a warning has not functional changes

@dmadisetti dmadisetti merged commit b0616cd into main Feb 27, 2026
41 of 45 checks passed
@dmadisetti dmadisetti deleted the ms/check-symlink-one-level branch February 27, 2026 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants