Skip to content

Commit

Permalink
Use latest vcpkg release for GitHub Action (#1035)
Browse files Browse the repository at this point in the history
* Use latest vcpkg release in windows action

* ci

* Fix deprecated boost filesystem functions
  • Loading branch information
johnwason authored Jul 27, 2024
1 parent e1836d9 commit dbeb11b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ jobs:
token: ${{ github.token }}
cache-key: ci-${{ matrix.os }}
github-binarycache: true
revision: 2024.01.12

- name: configure-msvc
uses: ilammy/msvc-dev-cmd@v1
Expand Down
4 changes: 2 additions & 2 deletions tesseract_common/src/resource_locator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void GeneralResourceLocator::processToken(const std::string& token)
if (package_paths_.find(dir_name) == package_paths_.end())
package_paths_[dir_name] = dir->path().string();

dir.no_push(); // don't recurse into this directory.
dir.disable_recursion_pending(); // don't recurse into this directory.
}

++dir;
Expand Down Expand Up @@ -153,7 +153,7 @@ std::shared_ptr<Resource> GeneralResourceLocator::locateResource(const std::stri
}
}

if (!tesseract_common::fs::path(mod_url).is_complete())
if (!tesseract_common::fs::path(mod_url).is_absolute())
{
CONSOLE_BRIDGE_logWarn("Resource not handled: %s", mod_url.c_str());
return nullptr;
Expand Down
2 changes: 1 addition & 1 deletion tesseract_common/test/resource_locator_unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class TestResourceLocator : public tesseract_common::ResourceLocator
mod_url = package_path + mod_url;
}

if (!tesseract_common::fs::path(mod_url).is_complete())
if (!tesseract_common::fs::path(mod_url).is_absolute())
return nullptr;

return std::make_shared<tesseract_common::SimpleLocatedResource>(
Expand Down
2 changes: 1 addition & 1 deletion tesseract_common/test/tesseract_common_unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class TestResourceLocator : public tesseract_common::ResourceLocator
mod_url = package_path + mod_url;
}

if (!tesseract_common::fs::path(mod_url).is_complete())
if (!tesseract_common::fs::path(mod_url).is_absolute())
return nullptr;

return std::make_shared<tesseract_common::SimpleLocatedResource>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ std::shared_ptr<Resource> TesseractSupportResourceLocator::locateResource(const
mod_url = package_path + mod_url;
}

if (!tesseract_common::fs::path(mod_url).is_complete())
if (!tesseract_common::fs::path(mod_url).is_absolute())
return nullptr;

return std::make_shared<SimpleLocatedResource>(
Expand Down

0 comments on commit dbeb11b

Please sign in to comment.