{"action":"opened","issue":{"url":"https://api.github.com/repos/TACC/Lmod/issues/116","repository_url":"https://api.github.com/repos/TACC/Lmod","labels_url":"https://api.github.com/repos/TACC/Lmod/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/TACC/Lmod/issues/116/comments","events_url":"https://api.github.com/repos/TACC/Lmod/issues/116/events","html_url":"https://github.com/TACC/Lmod/issues/116","id":153967533,"number":116,"title":"Symlinks & Cache","user":{"login":"wpoely86","id":424570,"avatar_url":"https://avatars.githubusercontent.com/u/424570?v=3","gravatar_id":"","url":"https://api.github.com/users/wpoely86","html_url":"https://github.com/wpoely86","followers_url":"https://api.github.com/users/wpoely86/followers","following_url":"https://api.github.com/users/wpoely86/following{/other_user}","gists_url":"https://api.github.com/users/wpoely86/gists{/gist_id}","starred_url":"https://api.github.com/users/wpoely86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wpoely86/subscriptions","organizations_url":"https://api.github.com/users/wpoely86/orgs","repos_url":"https://api.github.com/users/wpoely86/repos","events_url":"https://api.github.com/users/wpoely86/events{/privacy}","received_events_url":"https://api.github.com/users/wpoely86/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-10T09:56:03Z","updated_at":"2016-05-10T09:56:03Z","closed_at":null,"body":"We do:\r\n```\r\nexport MODULEPATH=/etc/modulefiles/vsc\r\nml use /apps/gent/SL6/sandybridge/modules/all\r\n```\r\nIn this case, `/apps/gent/SL6/sandybridge/modules/all` is a symlink to `/vscmnt/gent_vulpix_apps/_apps_gent/SL6/sandybridge/modules/all`.\r\nWe now get:\r\n```\r\n  Master.avail(){\r\n    Cache:cache(){\r\n      Cache:new(){\r\n        #scDescriptT: 1\r\n        Adding: dir: /apps/gent/SL6/sandybridge/.lmod/cache, timestamp: 1462851245\r\n      } Cache.new\r\n      s_cache.buildCache: nil\r\n    } Cache:cache\r\n    Cache:build(fast=nil){\r\n      self.buildCache: true\r\n      Cache:readCacheFile(moduleTFnA){\r\n        #moduleTFnA: 1\r\n        cacheFile found: /apps/gent/SL6/sandybridge/.lmod/cache/moduleT.luac_5.1\r\n        valid: true, timeDiff: 269\r\n        version: 3\r\n        importing maliasT\r\n        importing moduleT\r\n        moduleT dir: /etc/modulefiles/vsc\r\n        saving directory: /etc/modulefiles/vsc from cache file: /apps/gent/SL6/sandybridge/.lmod/cache/moduleT.luac_5.1\r\n        moduleT dir: version\r\n      } Cache:readCacheFile\r\n      Cache:readDbT(dbTFnA){\r\n        #dbTFnA: 1\r\n        cacheFile found: /apps/gent/SL6/sandybridge/.lmod/cache/dbT.luac_5.1\r\n        valid: true, timeDiff: 476\r\n      } Cache:readDbT\r\n      Cache:readCacheFile(moduleTFnA){\r\n        #moduleTFnA: 1\r\n        Did not find: /home/wpoelman/.lmod.d/.cache/moduleT.x86_64_Linux.luac_5001\r\n        Did not find: /home/wpoelman/.lmod.d/.cache/moduleT.x86_64_Linux.lua\r\n        Did not find: /home/wpoelman/.lmod.d/.cache/moduleT.luac_5001\r\n        Did not find: /home/wpoelman/.lmod.d/.cache/moduleT.lua\r\n        No cache files found intable:\r\n\r\n      } Cache:readCacheFile\r\n      Cache:readDbT(dbTFnA){\r\n        #dbTFnA: 1\r\n        Did not find: /home/wpoelman/.lmod.d/.cache/dbT.x86_64_Linux.luac_5001\r\n        Did not find: /home/wpoelman/.lmod.d/.cache/dbT.x86_64_Linux.lua\r\n        Did not find: /home/wpoelman/.lmod.d/.cache/dbT.luac_5001\r\n        Did not find: /home/wpoelman/.lmod.d/.cache/dbT.lua\r\n        No cache files found\r\n      } Cache:readDbT\r\n      rebuilding cache for directory: /vscmnt/gent_vulpix_apps/_apps_gent/SL6/sandybridge/modules/all\r\n      buildModuleT: true\r\n```\r\n\r\nAs you can see, it finds a valid cache for `/apps/gent/SL6/sandybridge/modules/all` but ignores it and creates a now one for `/vscmnt/gent_vulpix_apps/_apps_gent/SL6/sandybridge/modules/all`. If `use` resolves symlinks, then spider cache should do it too?"}}