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

[please ignore warning] Incorrect package structure - import file named raylib.nim instead of naylib.nim #123

Closed
Doublestuf opened this issue Jul 6, 2024 · 2 comments

Comments

@Doublestuf
Copy link

Installing the package with nimble causes a warning:
"Warning: Package 'naylib' has an incorrect structure. The top level of the package source directory should contain at most one module, named 'naylib.nim', but a file named 'raylib.nim' was found. This will be an error in the future."

Caused me some trouble, struggled for about an hour trying to see why import naylib wasn't working before looking into the .nimble directory and trying to import raylib.nim. Likely impacted by me being new to Nim, but worth changing to prevent a nimble error.

@planetis-m
Copy link
Owner

Sorry for the confusion, I'll see what can be done to silence the warning.

@planetis-m planetis-m pinned this issue Jul 6, 2024
@planetis-m planetis-m changed the title Incorrect package structure - import file named raylib.nim instead of naylib.nim [TBD-please ignore warning] Incorrect package structure - import file named raylib.nim instead of naylib.nim Jul 6, 2024
@planetis-m planetis-m changed the title [TBD-please ignore warning] Incorrect package structure - import file named raylib.nim instead of naylib.nim [please ignore warning] Incorrect package structure - import file named raylib.nim instead of naylib.nim Jul 6, 2024
@planetis-m
Copy link
Owner

Finally the warning was removed however it may take a while until a new nimble version ships. Keeping it pinned fir visibility.

@planetis-m planetis-m unpinned this issue Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants