Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Underscore in package name not shown in package directory #45

Open
TheSimpleZ opened this issue Jan 18, 2022 · 0 comments
Open

Underscore in package name not shown in package directory #45

TheSimpleZ opened this issue Jan 18, 2022 · 0 comments
Assignees

Comments

@TheSimpleZ
Copy link

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?
@FedericoCeratto FedericoCeratto self-assigned this Jan 18, 2022
sevalsixarci added a commit to sevalsixarci/nim-package-directory that referenced this issue Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants