Skip to content
This repository was archived by the owner on Aug 17, 2024. It is now read-only.
This repository was archived by the owner on Aug 17, 2024. It is now read-only.

Underscore in package name not shown in package directory #45

@TheSimpleZ

Description

@TheSimpleZ

Hello!

I've copied this issue from nim-lang/nimble#978.

Package names with underscores are displayed without the underscore in the nimble directory.

Original text:

I tried installing this package: https://nimble.directory/pkg/simpleparseopt

According to the linked page, I should install it using nimble install simpleparseopt. So far so good.

Now I tried using the package by importing it using import simpleparseopt. However, that failed.
The readme does not mention how I should import it. But I noticed that the title in the readme was different from the package name.
The readme says simple_parseopt. Once I tried import simple_parseopt, everything worked fine.

I thought there might be some configuration error on their side.
So I also tried creating my own package and published it to the nimble directory: https://nimble.directory/pkg/conventionalsemver

Same deal. My package name is conventional_semver. The PR submitted to publish the package also has an underscore.

But when looking at the nimble directory, the underscore is gone. I couldn't really find any mention of this behavior in the nimble readme. Is there a bug, or is it generally recommended to avoid snake_case for package names?

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions