-
-
Notifications
You must be signed in to change notification settings - Fork 86
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
Change app executable to allow app folder #19
Comments
I think it makes sense and the PR looks good, but I'd like others to 👍 before merging. @bcardiff, WDYT? |
What about leaving the binary in I think that could be a better change because for new crystal apps the shard.yml will include a targets description (and we could use If there is only one file in So if the change is to |
@bcardiff That's a great idea but currently Crystal's Macro system only allows relative path files to be set by absolute path (with the possible exception of the current directory). So moving the executable will change the relation to the files it's mapped to. In the case of web rendered content the template language ECR is a macro method so all absolute paths are fixed to the strings given in the build. So this would be a breaking change.
EDIT: Forgive me I read the "targets description" after writing this. I do think the target in the shards spec is a good way to go. |
It's easy to abstract away code to what you're familiar with. In one of my projects I modeled the directory structure after Rails. This build pack won't allow for a folder to be named
/app/
since the executable/app
exists (or vice versa). Can you please change the executable to be named/app.ex
?I don't think any other changes are necessary. Path is important so the executable should remain where it is.
I've tried thinking of another name for app for a folder to model after Rails, but it really loses the familiarly organized structure. Best thing I can think of is for the buildpack to add an extension to the executable.
The text was updated successfully, but these errors were encountered: