microsoft / Oryx

Build your repo automatically.
Other
768 stars 177 forks source link

Error: Platform 'golang' version '1.21.6' is unsupported #2396

Open mrThirsty opened 8 months ago

mrThirsty commented 8 months ago

Bug Report

I created a new Static Web site in Azure, and linked it to my Azure DevOps repo to automatically build and publish. The pipeline, which is included below, was created and run, and it errored with "Error: Platform 'golang' version '1.21.6' is unsupported".

I have a Hugo static website setup, it builds and runs fine when using a local Hugo server on my machine.

Below is the pipeline created by Azure when setting up the Azure Static Website:

name: Azure Static Web Apps CI/CD

pr:
  branches:
    include:
      - main
trigger:
  branches:
    include:
      - main

jobs:
- job: build_and_deploy_job
  displayName: Build and Deploy Job
  condition: or(eq(variables['Build.Reason'], 'Manual'),or(eq(variables['Build.Reason'], 'PullRequest'),eq(variables['Build.Reason'], 'IndividualCI')))
  pool:
    vmImage: ubuntu-latest
  variables:
  - group: Azure-Static-Web-Apps-zealous-flower-0edcb1403-variable-group
  steps:
  - checkout: self
    submodules: true
  - task: AzureStaticWebApp@0
    inputs:
      azure_static_web_apps_api_token: $(AZURE_STATIC_WEB_APPS_API_TOKEN_ZEALOUS_FLOWER_0EDCB1403)
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
      app_location: "/" # App source code path
      api_location: "" # Api source code path - optional
      output_location: "public" # Built app content directory - optional
###### End of Repository/Build Configurations ######

AzureStaticWebApp_Log.txt

NicholasDewberryOfficial commented 3 months ago

Im having this issue as well with Go 1.22

xiaojxiao2021 commented 1 month ago

Any update for this issue? I'm having exactly the same issue.