Beyond coding. We forge.
Find a file
Giteabot 889469fb74
Convert max file name length to 255 () ()
Backport  by @yp05327

Quick/Partly fix 

In Linux and MacOS, by default the max file name length is 255.
In windows, it depends on the version and settings, and has no file name
length limitation, but has path length limitation.
By default it is 260, considering path length is longer than filename,
so I think it is ok to do this.

For Windows, see
https://learn.microsoft.com/windows/win32/fileio/maximum-file-path-limitation?tabs=registry
For Linux, see
https://github.com/torvalds/linux/blob/master/include/uapi/linux/limits.h#L12-L13
For MacOS, see
https://discussions.apple.com/thread/254788848?sortBy=best

Co-authored-by: yp05327 <576951401@qq.com>
(cherry picked from commit f52b1db305f887c917e6c875b8ac4f8b784b825b)
last year
.devcontainer Switch to the maintained vitest extension () last year
.forgejo fix(release): add missing ARG RELEASE_VERSION last year
.gitea pull_request_template: test/needed label last year
assets [CHORE] Cleanup dependency last year
build [I18N] make merge-locales & build/merge-forgejo-locales.go are noop last year
cmd Improve "must-change-password" logic and document () last year
contrib Merge branch 'rebase-forgejo-dependency' into wip-forgejo last year
custom/conf [v7.0/forgejo] Render inline file permalinks last year
docker [BRANDING] cosmetic s/Gitea/Forgejo/ in logs, messages, etc. last year
models Improve "must-change-password" logic and document () last year
modules fix: Fix to delete cookie when AppSubURL is non-empty () () last year
options [I18N] Translations update from Weblate () last year
public [FEAT] sourcehut webhooks last year
releases/images [DOCS] RELEASE-NOTES.md last year
routers hooks: Harden when we accept push options that change repo settings last year
services Fix commit status cache which missed target_url () () last year
templates Convert max file name length to 255 () () last year
tests hooks: Harden when we accept push options that change repo settings last year
tools Add svg linter and fix incorrect svgs () last year
web_src Fix overflow on issue dependency () () last year
.air.toml Exclude routers/private/tests from air () last year
.changelog.yml Adapt .changelog.yml to new labeling system () last year
.deadcode-out Provide a way to translate data units last year
.dockerignore Adjust VS Code debug filename match in .gitignore () last year
.editorconfig Add markdownlint () 3 years ago
.eslintrc.yaml Forbid jQuery .attr () last year
.gitattributes [META] Use correct language for .tmpl last year
.gitignore move some scripts from 'build' to 'tools' directory, misc refactors () last year
.gitmodules cleanup(tests): remove manual testing submodule last year
.gitpod.yml Switch to the maintained vitest extension () last year
.golangci.yml [GITEA] depguard sha256-simd last year
.ignore Add /public/assets to .ignore () last year
.markdownlint.yaml Update JS dependencies () last year
.npmrc Upgrade to npm lockfile v3 and explicitely set it () two years ago
.spectral.yaml Add spectral linter for Swagger () 3 years ago
.stylelintrc.yaml Enable a few stylelint rules () last year
.yamllint.yaml fully replace drone with actions () last year
BSDmakefile Fix build errors on BSD (in BSDMakefile) () last year
build.go User/Org Feed render description as per web () two years ago
CODEOWNERS [META] Add CODEOWNERS files last year
CONTRIBUTING.md [DOCS] CONTRIBUTING last year
DCO Remove address from DCO () two years ago
Dockerfile fix(release): add missing ARG RELEASE_VERSION last year
Dockerfile.rootless feat(release): add OCI labels to container images last year
go.mod [CHORE] Update golang.org/x/net last year
go.sum [CHORE] Update golang.org/x/net last year
LICENSE [DOCS] LICENSE: add Forgejo Authors last year
main.go [RELEASE] decouple the release name from the version number last year
MAINTAINERS Apply to become a maintainer () last year
Makefile [RELEASE] GITEA_VERSION is a fallback for FORGEJO_VERSION last year
package-lock.json [v7.0/forgejo] Go and JS dependencies last year
package.json [v7.0/forgejo] Go and JS dependencies last year
playwright.config.js Enforce trailing comma in JS on multiline () last year
poetry.lock Update JS any PY dependencies, remove workarounds () last year
poetry.toml Clean up pyproject.toml and package.json, fix poetry options () two years ago
pyproject.toml Update js and py dependencies, bump python () last year
README.md [BRANDING] add Forgejo logo last year
RELEASE-NOTES.md [RELEASE] v1.21.8-0 release notes last year
renovate.json Reduce concurrent Renovate PR's last year
tailwind.config.js Migrate font-family to tailwind () last year
updates.config.js Configure pinned JS dependencies via updates.config.js () last year
vitest.config.js Switch to happy-dom for testing () last year
webpack.config.js Update JS any PY dependencies, remove workarounds () last year

Welcome to Forgejo

Hi there! Tired of big platforms playing monopoly? Providing Git hosting for your project, friends, company or community? Forgejo (/for'd͡ʒe.jo/ inspired by forĝejo the Esperanto word for forge) has you covered with its intuitive interface, light and easy hosting and a lot of builtin functionality.

Forgejo was created in 2022 because we think that the project should be owned by an independent community. If you second that, then Forgejo is for you! Our promise: Independent Free/Libre Software forever!

What does Forgejo offer?

If you like any of the following, Forgejo is literally meant for you:

  • Lightweight: Forgejo can easily be hosted on nearly every machine. Running on a Raspberry? Small cloud instance? No problem!
  • Project management: Besides Git hosting, Forgejo offers issues, pull requests, wikis, kanban boards and much more to coordinate with your team.
  • Publishing: Have something to share? Use releases to host your software for download, or use the package registry to publish it for docker, npm and many other package managers.
  • Customizable: Want to change your look? Change some settings? There are many config switches to make Forgejo work exactly like you want.
  • Powerful: Organizations & team permissions, CI integration, Code Search, LDAP, OAuth and much more. If you have advanced needs, Forgejo has you covered.
  • Privacy: From update checker to default settings: Forgejo is built to be privacy first for you and your crew.
  • Federation: (WIP) We are actively working to connect software forges with each other through ActivityPub, and create a collaborative network of personal instances.

Learn more

Dive into the documentation, subscribe to releases and blog post on our website, find us on the Fediverse or hop into our Matrix room if you have any questions or want to get involved.

Get involved

If you are interested in making Forgejo better, either by reporting a bug or by changing the governance, please take a look at the contribution guide.