Describe the bug
When you use clarinet new to create a project in the current folder, it will break devnet. The reason is that it names the project '.' which causes the Docker network names to look like this: stacks-node...devnet. The resulting tool looks like this:
[project]
name = '.'
To Reproduce
mkdir broken
cd broken
clarinet new .
clarinet devnet start
Expected behavior
Everything should still work properly.
Suggested fix
When using a path, Clarinet should use the folder name as the project name. In the example above, it should take the name broken. Then we can use clarinet new .. Additionally, it is probably good to filter out illegal characters in the name for the Docker network names. (If it is not done already.)
Describe the bug When you use
clarinet new
to create a project in the current folder, it will break devnet. The reason is that it names the project'.'
which causes the Docker network names to look like this:stacks-node...devnet
. The resulting tool looks like this:To Reproduce
Expected behavior Everything should still work properly.
Suggested fix When using a path, Clarinet should use the folder name as the project name. In the example above, it should take the name
broken
. Then we can useclarinet new .
. Additionally, it is probably good to filter out illegal characters in the name for the Docker network names. (If it is not done already.)