-
Notifications
You must be signed in to change notification settings - Fork 257
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
Canonicalize source path #1503
Canonicalize source path #1503
Conversation
48b99e6
to
4c99a91
Compare
You'll have to rebase on main...sorry! |
4c99a91
to
85df956
Compare
Not sure how I feel about this feature; '~'-expansion is usually just a shell feature and while there are some applications that support it, it isn't really all that common in config files ime. I would rather spell out |
Perhaps I should explain why I'd like to have this feature. My cargo target directory is always set to Perhaps you could explain more about what you're worried about? Do we want to discourage source paths that aren't relative to spin application? We already support absolute paths, so I see this as just an extension of that. |
It's partly about consistency. Do we support |
But! Your use case seems reasonable to me and I'm definitely not vetoing this or anything. |
@lann I expanded this PR to also support ENV variables using the |
👍 The only other thing I would consider is whether we want to support |
@lann that would need to be reconciled with how we handle sqlite databases as well. Can we merge this first and then handle the runtime config case once the sqlite PR lands? I will make an issue for this. |
I opened #1526 to track that we do this consistently. |
Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
3d78212
to
3725e21
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, had this review comment queued up but never submitted it...
Co-authored-by: Lann <lann.martin@fermyon.com> Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
d73aec9
to
55d46c8
Compare
This allows users to have "~/some/path/../to/binary" as their source in their
spin.toml
.