question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

arm-containerregistry. fail to build.

See original GitHub issue

After we generation packages for arm-containerregistry, we found it’s unable to build and report errors like this image

To repro, please checkout latest swagger repo and using code generation command like autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --typescript-sdks-folder=/Users/zhangqiaoqiao/work/code/azure-sdk-for-js ../azure-rest-api-specs/specification/containerregistry/resource-manager/readme.md --use=@autorest/typescript@6.0.0-beta.12

After dig into this issue, we found the OS type is an enum type. but the weird part is other enum type works fine. I am not sure why. image

We can generate Architecture type correctly but not OS.

Another point need to mention here, how is current code generator handle modelAsString: true enum ? because I saw the generated code for Architecture

image It just a normal string type and though we generated KnownArchitecture, but I never see it was used anywhere. I am not sure if that’s expected and users friendly?

Maybe we should change Architecture definition like: export type Architecture = KnownArchitecture | string;

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
sarangan12commented, Oct 19, 2021

Based on the offline discussion, @qiaozha has informed that the issue has been resolved. Closing this issue.

1reaction
sarangan12commented, Sep 10, 2021

I have found a possible solution for this issue. The test suite is currently running. Once it is complete, I will update the issue with the PR.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot login to registry - Azure Container Registry
Symptoms, causes, and resolution of common problems when logging into an Azure container registry.
Read more >
[solved] Failing to build dockerfile for ARM servers; rpc error ...
I'm new to docker hub. Dockerfile # Build SafeNetwork Docker container FROM arm64v8/alpine:latest LABEL version="1.0" LABEL maintainer="Folât ...
Read more >
"exec format error" when running containers build with Apple ...
You're building code on an ARM platform and trying to run it on an x86_64 platform. Looking at this doc it doesn't appear...
Read more >
Bicep Deployment Error - `WebhookInvalidParameterValue ...
Issue description. Failure to pull container image from private azure container registry when deploying azure container app via bicep.
Read more >
Building ARM-based container images with VSTS and Azure ...
Azure Container Registry Build is currently in preview, but it is an awesome feature of ACR. But what is ACR Build? It is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found