Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Name length cap: is 40 right, should it apply to tracker names, or should long slugs be shortened instead?

Open
#287 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Active
Tech stack
docker, rust, supabase
Domain
cli, devtools

Research direction

Start by reading the change in #286 and its validate_name implementation, then trace how branch.slug and tracker names feed project IDs, Docker Compose names, paths, refs, and remote repository names. Check the actual naming limits for Supabase and Docker, then compare a shared cap with limits tailored to each use. Done means the issue's questions have a measured, documented decision and the validation behavior matches it.

Written by the indexing model from the issue text.

Description

#286 (for #263) caps names at MAX_NAME_LEN = 40 in validate_name. The number came from reasoning, not measurement:

  • Is 40 right? The slug feeds {{branch.slug}}: Supabase project_ids (<prefix>-{{branch.slug}}), Docker Compose project and container names (supabase_realtime_<project_id>), the workspace directory and the lock file. A 63-character DNS label is the tightest plausible limit, and 40 leaves 23 characters for a prefix. Nobody has checked it against Supabase's or Docker's actual rules, and branches named after long issue titles will hit it.
  • It also caps tracker names. validate_name is shared, so tracker and code-tracker names get the same 40-character limit. They're spliced into paths, refs and remote repo names (<owner>.<project>.t.<tracker>), so a cap is reasonable, but maybe not the same one.
  • Should the cap depend on what the name feeds? An alternative is to allow longer names and shorten the slug (truncate plus a hash) wherever it goes into Docker or Supabase identifiers.
Dominant language
Rust
Stars
0
Forks
0
Avg merge
4h 56m
Merged PRs (30d)
51

Getting set up

We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Spheroman/newgit

All issues in Spheroman/newgit

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.