-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hugo version detected incorrectly #2533
Comments
I have tried creating an Environment Variable under the SWA , HUGO_VERSION = 0.135.0 . However this causes no change; the build log still fails and says that it detected hugo version 0.112.5 . |
I have found that I can work around the problem by adding This means my site is now usable, although it'd still be good if the default behaviour is fixed or gives a useful message (there's no reason for it to say "detected 0.112.5" when I am not using that version). |
Bug Report
At what date and time did you most recently experience the problem?
13 Oct 2024 12:20am NZDT
Where did you experience the problem? E.g. Azure Web Apps, Azure Functions, Azure Container Registry, or offline use.
Azure Portal - deploying a Static Web App
If your repo is publicly available please share its URL:
What happened?
I am trying to deploy a new Hugo application as Static Web App. However, the deployment failed. The log shows that Oryx detected the Hugo version as 0.112.5, however I am using version 0.135.0 . Then , deployment failed because the theme I am using, "Ananke", performs a version check and won't run on 0.112.5 .
What did you expect or want to happen?
Expect successful deployment.
How can we reproduce it?
Create a Hugo app via https://gohugo.io/getting-started/quick-start/ , with Ananke theme as shown on that page, , then deploy by exactly following the instructions at https://learn.microsoft.com/en-us/azure/static-web-apps/publish-hugo
Do you have log output? Please include between the backticks:
The text was updated successfully, but these errors were encountered: