Skip to content

Commit

Permalink
using joinPath only for FS paths, otherwise manual concat for urls
Browse files Browse the repository at this point in the history
  • Loading branch information
miki725 committed Oct 13, 2023
1 parent 1c32341 commit 5e6e131
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion files/con4m/components.nim
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ proc fullComponentSpec*(name, location: string): string =
else:
path = location.resolvePath()

result = path.joinPath(name)
if path.startsWith("https://"):
result = path & "/" & name
else:
result = path.joinPath(name)

proc setDefaultStoreUrl*(url: string) =
once:
Expand Down

0 comments on commit 5e6e131

Please sign in to comment.