adamrehn/conan-ue4cli

Cache of conan-ue4 is not invalidated

wl2776 opened this issue · 0 comments

Configuration

OS: Windows 10
UE version: 4.26
conan-ue4cli version: 0.0.38

Steps to reproduce

  1. Generate packages with UE4 third-party components as described in the instruction
cd c:\path1 
git clone --depth 1  -b 4.26.2-release git@github.com:EpicGames/UnrealEngine.git
ue4 setroot c:\path1\UnrealEngine 
ue4 conan generate
  1. Remove cloned sources (del /s/q c:\path1\UnrealEngine)
  2. Remove all generated packages from the local conan cache (conan remove "*adamrehn*")
  3. Repeat step 1, but use another path for UE4 sources
cd c:\path2
git clone --depth 1  -b 4.26.2-release git@github.com:EpicGames/UnrealEngine.git
ue4 setroot c:\path2\UnrealEngine 
ue4 conan generate

The last operation, ue4 conan generate, looks for library paths into %AppData%\ue4cli\cache instead of searching through local file system. It can seen with the following snippet

from ue4lib import UE4Lib
png = UE4Lib("UElibPNG")
print(png)