Skip to content

Commit

Permalink
[tinyfiledialogs] Update and switch to zip download.
Browse files Browse the repository at this point in the history
Resolves zip download failure due to vcpkg_from_git being unable to be asset cached. Example: https://dev.azure.com/vcpkg/public/_build/results?buildId=111706

Building tinyfiledialogs:arm-neon-android@3.8.8#4...
-- Fetching https://git.code.sf.net/p/tinyfiledialogs/code master...
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
    Command failed: /usr/bin/git fetch https://git.code.sf.net/p/tinyfiledialogs/code master -n
    Working Directory: /vcpkg/downloads/git-tmp
    Error code: 128
    See logs for more information:
      /mnt/vcpkg-ci/b/tinyfiledialogs/git-fetch-arm-neon-android-err.log

[...]
remote: error: unable to open object pack directory: ./objects/pack: Transport endpoint is not connected
remote: fatal: failed to read object e6f86deb8bab8e2c560587726635e4f7c34ba659: Transport endpoint is not connected
remote: aborting due to possible repository corruption on the remote side.
fatal: protocol error: bad pack header
  • Loading branch information
BillyONeal committed Jan 22, 2025
1 parent c7961da commit c14f918
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
11 changes: 6 additions & 5 deletions ports/tinyfiledialogs/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)

vcpkg_from_git(
vcpkg_from_sourceforge(
OUT_SOURCE_PATH SOURCE_PATH
FETCH_REF master
HEAD_REF master
URL https://git.code.sf.net/p/tinyfiledialogs/code
REF e11f94cd7887b101d64f74892d769f0139b5e166
REPO tinyfiledialogs
FILENAME tinyfiledialogs-current.zip
SHA512 6e890014646e69f0002a342d6331ec03dc41749a760dd30ac8a99919adbfc8ba646f988d1f44b0c1991a075d9cd054e481014c8cc8c5e9e8ec56ce2600d6fb03
)

file(REMOVE_RECURSE "${SOURCE_PATH}/dll_cs_lua_R_fortran_pascal")

file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")

vcpkg_cmake_configure(
Expand Down
3 changes: 1 addition & 2 deletions ports/tinyfiledialogs/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "tinyfiledialogs",
"version": "3.8.8",
"port-version": 4,
"version": "3.18.2",
"description": "Highly portable and cross-platform dialogs for native inputbox, passwordbox, colorpicker and more",
"homepage": "https://sourceforge.net/projects/tinyfiledialogs/",
"supports": "!uwp",
Expand Down
4 changes: 2 additions & 2 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -9013,8 +9013,8 @@
"port-version": 0
},
"tinyfiledialogs": {
"baseline": "3.8.8",
"port-version": 4
"baseline": "3.18.2",
"port-version": 0
},
"tinyfsm": {
"baseline": "0.3.3",
Expand Down
5 changes: 5 additions & 0 deletions versions/t-/tinyfiledialogs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "66dd1c60462dca8ace6d295559d268a9d958c5c0",
"version": "3.18.2",
"port-version": 0
},
{
"git-tree": "be887c4bad998770f49efced776f0ef5df71d342",
"version": "3.8.8",
Expand Down

0 comments on commit c14f918

Please sign in to comment.