-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Closed
Labels
Description
Description
Building ubuntu2004 image from ubuntu20/20210123.1
while building cargo
I get the following error:
==> azure-arm: error[E0283]: type annotations needed
==> azure-arm: --> /usr/share/rust/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-0.50.0/src/cargo/util/config/de.rs:530:63
==> azure-arm: |
==> azure-arm: 530 | seed.deserialize(Tuple2Deserializer(1i32, env.as_ref()))
==> azure-arm: | ----^^^^^^--
==> azure-arm: | | |
==> azure-arm: | | cannot infer type for type parameter `T` declared on the trait `AsRef`
==> azure-arm: | this method call resolves to `&T`
==> azure-arm: |
==> azure-arm: = note: cannot satisfy `std::string::String: AsRef<_>`
==> azure-arm:
==> azure-arm: error: aborting due to previous error
==> azure-arm:
==> azure-arm: For more information about this error, try `rustc --explain E0283`.
==> azure-arm: error: failed to compile `cargo-outdated v0.9.14`, intermediate artifacts can be found at `/tmp/cargo-installPzevWT`
==> azure-arm:
==> azure-arm: Caused by:
==> azure-arm: could not compile `cargo`
==> azure-arm:
==> azure-arm: To learn more, run the command again with --verbose.
==> azure-arm: Script exited with non-zero exit status: 101.Allowed exit codes are: [0]
Area for Triage:
Rust
Question, Bug, or Feature?:
Bug
Virtual environments affected
- Ubuntu 16.04
- Ubuntu 18.04
- Ubuntu 20.04
- macOS 10.15
- macOS 11.0
- Windows Server 2016 R2
- Windows Server 2019
Expected behavior
Image build succeeds
Actual behavior
Image build fails
Repro steps
A description with steps to reproduce the issue. If your have a public example or repo to share,
please provide the link.
- git clone git@github.com:actions/virtual-environments.git
- cd virtual-environments
- image="ubuntu2004"
- os="linux"
- ResourceGroupName="company-uk-south"
- AzureLocation="uksouth"
- ImageGenerationRepositoryRoot=$(pwd)
- builderScriptPath=${ImageGenerationRepositoryRoot}/images/$os/$image.json
- storageAccountName="$(echo $ResourceGroupName | sed 's/-//g')001"
- echo "GithubFeedToken=$PAT" > ~/.ssh/GitHubFeedToken
- . ~/.ssh/GitHubFeedToken
- packer build -on-error=ask
-var subscription_id=$SubscriptionId
-var location=$AzureLocation
-var resource_group=$ResourceGroupName
-var storage_account=$storageAccountName
-var github_feed_token=$GithubFeedToken
$builderScriptPath