# .Path warning, but deep in AppData

**URL:** <https://discourse.gohugo.io/t/path-warning-but-deep-in-appdata/37240>\
**Category:** support\
**Created:** [February 19, 2022, 3:50am UTC](https://discourse.gohugo.io/t/path-warning-but-deep-in-appdata/37240 "2022-02-19T03:50:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![suresh](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@suresh](https://discourse.gohugo.io/u/suresh)\
**Post date:** [February 19, 2022, 3:50am UTC](https://discourse.gohugo.io/t/path-warning-but-deep-in-appdata/37240/1 "2022-02-19T03:50:36Z")

</div>

The offending file seems to deep inside AppData… should I go there to paste the replacement code ?

hugo --panicOnWarning  
hugo: collected modules in 1739 ms  
Start building sites …  
hugo v0.92.2-CDF6A0D6+extended windows/amd64 BuildDate=2022-02-11T14:17:39Z VendorInfo=gohugoio  
WARN 2022/02/18 22:44:52 .Path when the page is backed by a file is deprecated and will be removed in a future release. We plan to use Path for a canonical source path and you probably want to check the source is a file. To get the current behaviour, you can use a construct similar to the one below:

{{ $path := “” }}  
{{ with .File }}  
{{ $path = .Path }}  
{{ else }}  
{{ $path = .Path }}  
{{ end }}  
Error: Error building site: failed to render pages: render of “page” failed: execute of template failed: template: event/single.html:5:3: executing “event/single.html” at \<partial “site\_head” .\>: error calling partial: “C:\Users\bsure\AppData\Local\Temp\hugo\_cache\modules\filecache\modules\pkg\mod\[github.com](http://github.com)\wowchemy\wowchemy-hugo-modules\wowchemy@v0.0.0-20210526223849-81ba17522966\layouts\partials\site\_head.html:33:51”: execute of template failed: template: partials/site\_head.html:33:51: executing “partials/site\_head.html” at \<.Path\>: error calling Path: Warning trapped. Remove the --panicOnWarning flag to continue.  
Total in 2646 ms

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [February 19, 2022, 3:55am UTC](https://discourse.gohugo.io/t/path-warning-but-deep-in-appdata/37240/2 "2022-02-19T03:55:52Z")

</div>

Please raise your issue with the wowchemy team:  
[https://github.com/wowchemy/wowchemy-hugo-themes/issues/](https://github.com/wowchemy/wowchemy-hugo-themes/issues/)

This may be the same issue:  
[https://github.com/wowchemy/wowchemy-hugo-themes/issues/2592](https://github.com/wowchemy/wowchemy-hugo-themes/issues/2592)

Their [release notes](https://github.com/wowchemy/wowchemy-hugo-themes/releases/tag/v5.4.0) require:

> Hugo Extended 0.87.0 - 0.89.4

You are trying to use v0.92.2.

---

<div class="post-metadata">

**Author:** ![suresh](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@suresh](https://discourse.gohugo.io/u/suresh)\
**Post date:** [February 19, 2022, 4:05am UTC](https://discourse.gohugo.io/t/path-warning-but-deep-in-appdata/37240/3 "2022-02-19T04:05:24Z")

</div>

Thank you so much. I am really new, so could you perhaps quickly tell me how I can use

scoop install git go hugo-extended

to install and use v0.89.4 ? (Windows 10)

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [February 19, 2022, 4:13am UTC](https://discourse.gohugo.io/t/path-warning-but-deep-in-appdata/37240/4 "2022-02-19T04:13:31Z")

</div>

Please see the scoop documentation, or raise an issue with the developer:  
[https://github.com/ScoopInstaller/Scoop/issues](https://github.com/ScoopInstaller/Scoop/issues)

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [February 21, 2022, 4:13am UTC](https://discourse.gohugo.io/t/path-warning-but-deep-in-appdata/37240/5 "2022-02-21T04:13:39Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
