Skip to content

Handle modules with no dirname #35

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

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

clarityflowers
Copy link
Contributor

This could cause crashes because

cognac hello.cog

will assign

m->dir = "hello"

and thus try to load modules fromhello/module.cog, but hello has already been reserved as the executable out file!

This could cause crashes because

	cognac hello.cog

will assign

	m->dir = "hello"

and thus try to load modules from
`hello/module.cog`, but `hello` has already been
reserved as the executable out file!
@StavromulaBeta
Copy link
Collaborator

Amazing - thank you!!

@StavromulaBeta StavromulaBeta merged commit 419f1cf into cognate-lang:master Jan 9, 2025
4 checks passed
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

Successfully merging this pull request may close these issues.

2 participants