manifoldco / manifoldco/torus-cli

Capital letters not allowed in project names

Open
#381 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
603
Forks
30
PR merge metrics
No merged PRs in 30d

Description

Replicate

  1. run ./torus link in a new folder and create a new project
  2. On the ✗ Create a new project: prompt type something with capital letters (like TorusTestProject)
  3. Get this error message
 Project names must be between 1 and 64 characters in length and only contain alphabetical letters, numbers, hyphens, and underscores.

The error message says nothing of letters needing to be lowercase, but that seems to be the case.

In the validation code validate/validate.go:11 It only allows lowercase, but the error message doesn't specify as such.

The error message also doesn't specify that the project name must start with a letter.

If I can make a suggestion, I would reword it to something like

Project names must be between 1 and 64 characters in length; only contain lowercase
letters, numbers, hyphens, and underscores; and begin with a lowercase letter.

Contributor guide

Open the contributing guide

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.

Research direction

Start in validate/validate.go at the validation rule linked by the issue, then reproduce the prompt with ./torus link in a new folder using a project name with capital letters. Update the project-name error message so it states the lowercase and initial-letter requirements, and verify the prompt reports the clarified rules.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.