fix(build): swagger css import#37801
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes the Swagger UI CSS import so Vite/PostCSS can resolve it reliably in environments where a relative ../../node_modules/... path is not valid (e.g., Snap builds).
Changes:
- Switch Swagger UI CSS import from a relative
node_modulespath to a package-resolved import (swagger-ui-dist/swagger-ui.css).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
silverwind
approved these changes
May 21, 2026
Member
|
Good find, this seems to be some slop I generated. |
bircni
approved these changes
May 21, 2026
bircni
pushed a commit
that referenced
this pull request
May 21, 2026
Backport #37801 by @lunny Snap build failure caused by missed swagger ui css file. ``` :: [plugin vite:css] /build/gitea/parts/gitea/build/web_src/css/swagger-standalone.css:undefined:NaN :: Error: [postcss] ENOENT: no such file or directory, open '../../node_modules/swagger-ui-dist/swagger-ui.css' ``` Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: silverwind <me@silverwind.io>
Member
can we cover this somehow in ci? |
zjjhot
added a commit
to zjjhot/gitea
that referenced
this pull request
May 22, 2026
* main: (70 commits) fix(api): handle partial failures in push mirror synchronization gracefully (go-gitea#37782) fix(deps): update module golang.org/x/crypto to v0.52.0 [security] (go-gitea#37806) fix(build): swagger css import (go-gitea#37801) feat: add copy button to action step header, improve other copy buttons (go-gitea#37744) style: misc UI fixes (go-gitea#37691) ci: shard tests and reduce redundant work (go-gitea#37618) chore: simplify issue and pull request templates (go-gitea#37799) chore: Update 1.26.2 changelog in main (go-gitea#37796) fix(actions): make artifact signature payloads unambiguous (go-gitea#37707) chore: Update giteabot to fix failure when backport (go-gitea#37789) fix(deps): update module github.com/go-git/go-git/v5 to v5.19.1 [security] (go-gitea#37786) fix(pull): handle empty pull request files view to allow reviews (go-gitea#37783) fix(markup): make RenderString never fail (go-gitea#37779) fix(markup): wrap indented code blocks for the code-copy button (go-gitea#37748) fix(permissions): Fix reading permission (go-gitea#37769) fix: add natural sort to sortTreeViewNodes (go-gitea#37772) fix: package creation unique conflict (go-gitea#37774) fix(deps): update npm dependencies (go-gitea#37768) fix(deps): update module gitlab.com/gitlab-org/api/client-go/v2 to v2.26.0 (go-gitea#37771) ci: split giteabot workflow (go-gitea#37770) ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Snap build failure caused by missed swagger ui css file.