Skip to content
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

[vcpkg_from_git] Fix error if downloads folder does not exist #18758

Closed

Conversation

ras0219-msft
Copy link
Contributor

From #18705:

Related issue #18291, #16282, #14424, #18071, #17704, #17517, #16846, #16015, #15911, #15649, #15648, #14974, #13851

This PR actually fixes the root cause.

@PhoebeHui PhoebeHui self-assigned this Jul 2, 2021
@PhoebeHui PhoebeHui added the category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`) label Jul 2, 2021
@PhoebeHui PhoebeHui added the info:reviewed Pull Request changes follow basic guidelines label Jul 5, 2021
@BillyONeal
Copy link
Member

I don't think this is sufficient because there are similar places all over the tool that expect the downloads directory to already exist, in particular bootstrap and friends. Do we know how we got to this 'downloads doesn't exist' condition in the first place?

@strega-nil-ms
Copy link
Contributor

@BillyONeal everywhere else should use vcpkg_download_distfile, which already takes care of this.

scripts/cmake/vcpkg_from_git.cmake Outdated Show resolved Hide resolved
@BillyONeal
Copy link
Member

@BillyONeal everywhere else should use vcpkg_download_distfile, which already takes care of this.

bootstrap does not use vcpkg_download_distfile

@strega-nil-ms
Copy link
Contributor

@BillyONeal bootstrap.ps1 does not need downloads, while bootstrap.sh uses curl --create-dirs.

@strega-nil-ms
Copy link
Contributor

Closing for rollup #18838

strega-nil-ms pushed a commit to strega-nil/vcpkg that referenced this pull request Jul 13, 2021
[vcpkg_from_git] Fix error if downloads folder does not exist
BillyONeal pushed a commit that referenced this pull request Jul 14, 2021
* [rollup:2021-07-06 1/8] PR #18272 (@strega-nil)

[scripts-audit] vcpkg_from_*

* [rollup:2021-07-06 2/8] PR #18319 (@strega-nil)

[scripts-audit] add guidelines for cmake

* [rollup 2021-07-06 3/8] PR #18410 (@mheyman)

[vcpkg-cmake-config] documentation fix

* [rollup:2021-07-06 4/8] PR #18488 (@strega-nil)

[scripts-audit] vcpkg_execute_*

* [rollup:2021-07-06 5/8] PR #18517 (@strega-nil)

[scripts-audit] vcpkg_extract_source_archive

* [rollup:2021-07-06 6/8] PR #18674 (@NancyLi1013)

[vcpkg doc] Update examples

* [rollup:2021-07-06 7/8] PR #18695 (@JackBoosY)

[vcpkg] Update the minimum version of vcpkg

* [rollup:2021-07-06 8/8] PR #18758 (@ras0219-msft)

[vcpkg_from_git] Fix error if downloads folder does not exist

* build docs!

* fix bond:*-windows

* fix nmap

Co-authored-by: nicole mazzuca <[email protected]>
Co-authored-by: Michael Heyman <[email protected]>
Co-authored-by: NancyLi1013 <[email protected]>
Co-authored-by: JackBoosY <[email protected]>
Co-authored-by: Robert Schumacher <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`) info:reviewed Pull Request changes follow basic guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants