-
Notifications
You must be signed in to change notification settings - Fork 588
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
Paket helper: If endpoint is reset to <emptystring> in fake script, the resulting aket push command is not valid #667
Comments
you could apply the same pattern as https://github.com/fsharp/FAKE/blob/master/src/app/FakeLib/PaketHelper.fs#L58 - would that help!? |
It would help that the command would be valid. Not sure what would happen in Paket though, will not giving the endpoint resolve to the default |
ok. let's start from the beginning. you don't want to specify an endpoint and you don't want it to default to /api/v2/package/? Is that correct? |
Not sure this is worth pursuing if it means making big changes due to my fringe needs. In my case it occured cause I have the complete address to the endpoint in the URL, and I did not want the default endpoint stuff appended to it. I could just split it into URL: http://host, Endpoint : /The/rest, and as such go on happily. But I feel there might be a violation of the principle of least surprise somewhere here. |
I agree we should only append the default endpoint if we detect that there is no endpoint in the url. I suggest the following changes:
I can do 2) can you help with 1)? |
Sure, but how can we reliably know? We could look at what Nuget does: fsprojects/Paket#651 (comment) wich seems to be: Not quite sure how to proceed without giving someone somewhere a nasty surprise. Should we start with a naive |
yes let's start simple. It seems we can't solve every quirk in one go. |
MyGet users typically know to append this manually, so feel free to proceed that way without MyGet specific conventions. |
(the FAKE part is done) |
Ok, I will have a look at the Paket part this evening |
Then I suppose we can close this? |
Paket helper: If endpoint is reset to in fake script, the resulting command is not valid.
There should be some way of clearing endpoint to avoid getting the default
/api/v2/package
Trying to do this in the build script will break the call to paket as the endpoint param is always passed.
The text was updated successfully, but these errors were encountered: