-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Potential bug for FileServer when running binary on a different Linux host #2593
Comments
does work when writing
as
for now leaving this as a potential bug report |
Responding to this in the discussion. |
Aside from the fact that the documentation is unclear (which is a separate issue), this also seems to be a potential bug that was closed without a clear justification. There is, in fact, no real use case for the relative! macro, and it is apparent that the installation directory will differ from the build directory. The ability to choose between an absolute or a relative path is already implicit in the string itself. Therefore, in addition to improving the documentation, the necessity of the relative! macro in the code is debatable. |
Description
After review of code and documentation i cannot but come to think this may be a bug
To Reproduce
#2592
Expected Behavior
not use a static path when running a compiled binary when using FileServer::from(relative!($path))
Environment:
Additional Context
tera template does not seem to take the relative! macro and make the path relative, it leaves a static path in the release binary
The text was updated successfully, but these errors were encountered: