You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering what it would return as I was trying to rely on it's behavior in a module: example
On one hand I want the behavior of a module not to change when I release it to an OCI registry. On the other hand, I don't want it to "lie" either. So I think the modpath for oci://something.com/a should be "oci://something.com/a"
Things that I think would complicate it:
If one was trying to find out the "parent directory". I think it should return "oci://something.com" but getting the parent directory of "oci://something.com" would be equivalent to getting the parent directory of /
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I was discussing
file.modpath()
with @zong-zhe hereI was wondering what it would return as I was trying to rely on it's behavior in a module: example
On one hand I want the behavior of a module not to change when I release it to an OCI registry. On the other hand, I don't want it to "lie" either. So I think the modpath for
oci://something.com/a
should be"oci://something.com/a"
Things that I think would complicate it:
"oci://something.com"
but getting the parent directory of"oci://something.com"
would be equivalent to getting the parent directory of/
Beta Was this translation helpful? Give feedback.
All reactions