scalameta / fastpass

Command-line tool to export a Pants build to Bloop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

User supplied project names are modified

odisseus opened this issue · comments

Describe the bug
When creating a project, the user can provide a name for that project. Fastpass modifies that name before using it; in particular, the project name gets shortened if it is longer than a certain limit. This might surprise the user, and, more importantly, it breaks interaction with the IntelliJ Pants plugin.

To Reproduce
Steps to reproduce the behavior:

VERY_LONG_NAME=$(cat /dev/urandom | tr -cd '[:alnum:]' | head -c 100)
echo $VERY_LONG_NAME
fastpass create --name $VERY_LONG_NAME ::
fastpass list
fastpass info $VERY_LONG_NAME

Expected behavior
The name of the new project should be exactly as specified by the user.