-
Notifications
You must be signed in to change notification settings - Fork 115
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
Sanitize core library filename #33
Comments
Hi! I once co-wrote bazel support for Common Lisp. What issue are you having? Is the issue that gambit generates files with |
Oh, I see it might be gerbil introducing the |
I actually fixed the "#" issue in bazelbuild/bazel#2006 to make bazel work with gambit. (updated OP) But gerbil have names like |
The "#" is used by convention in Gambit for macro definitions that get included from other files. The <...>'s are coming from nested modules that get compiled into separate module files; I guess we could sanitize the generated file names to not include invalid shell characters. |
That should work (we also need regenerate bootstrap files, right?). Involved characters are: |
It requires some small changes in the compiler, and then a new bootstrap generation -- but that's something that is easy to do nowadays. |
|
Can we make a list of the problematic characters so that I can have the compiler do generic mangling for all of them? |
We could reuse bazel's sanitize target name definition: |
so these are the acceptable characters in bazel? |
For filenames yes. It's slightly stricter for package name (e.g. |
Can we add : to the list as well? it would be nice to not have to come up with a new separator. |
For example I could run |
ok, I guess we could use $ java-style :) |
Also, the |
Regarding of a generic approach to handle special characters in module name, how about simply replace characters other than entry point are: Am I missing any parts? |
yes, that would work. |
@wsxiaoys does this solve your issue? |
@vyzo Thanks for the fix! Yes, the built file is now accepted by bazel :) |
Hi,
I'm working on support gerbil compiling in my implementation of bazel integration of gambit (https://github.com/wsxiaoys/rules_gambit).
One restriction bazel have, is only allows specific set of filenames as sources: link
The text was updated successfully, but these errors were encountered: