Skip to content

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

Closed
ras0219-msft wants to merge 2 commits intomicrosoft:masterfrom
ras0219-msft:dev/roschuma/vcpkg-from-git
Closed

[vcpkg_from_git] Fix error if downloads folder does not exist#18758
ras0219-msft wants to merge 2 commits intomicrosoft:masterfrom
ras0219-msft:dev/roschuma/vcpkg-from-git

Conversation

@ras0219-msft
Copy link
Copy Markdown
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:needs-maintainer-attention Lets the current 'on rotation' vcpkg maintainer know they need to look at this. label Jul 5, 2021
@BillyONeal
Copy link
Copy Markdown
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
Copy Markdown
Contributor

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

@BillyONeal
Copy link
Copy Markdown
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
Copy Markdown
Contributor

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

@strega-nil-ms
Copy link
Copy Markdown
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 <mazzucan@outlook.com>
Co-authored-by: Michael Heyman <Michael.Heyman@jhuapl.edu>
Co-authored-by: NancyLi1013 <lirui09@beyondsoft.com>
Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
Co-authored-by: Robert Schumacher <ras0219@outlook.com>
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:needs-maintainer-attention Lets the current 'on rotation' vcpkg maintainer know they need to look at this.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants