Skip to content

Commit fa23f34

Browse files
authored
Rust setup: Use UID / GID (#484)
Depending on the pipeline runner, the account name created in the container may be `azure_pipelines_docker` or `docker_azpcontainer`, leading to issues in setting the permissions that allow us to create or move files for rust setup / rust testing. It was seen that regardless of the name, the actual UID / GID that they are using is always 1001, so we instead hardcode the UID/GID value instead of the name. This has proven to work here: https://dev.azure.com/projectmu/mu/_build/results?buildId=96553&view=logs&j=a0dae8b7-2e4d-50ba-22df-26bfc97f6333&t=f5f7ed98-5e80-50ec-f2eb-a7de1997e1f1
1 parent edd4495 commit fa23f34

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.sync/Version.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#}
3131

3232
{# The git ref value that files dependent on this repo will use. #}
33-
{% set mu_devops = "v17.0.0" %}
33+
{% set mu_devops = "v17.0.1" %}
3434

3535
{# The latest Project Mu release branch value. #}
3636
{% set latest_mu_release_branch = "release/202502" %}

Steps/RustCargoSteps.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ steps:
3434
target: host
3535
inputs:
3636
script: |
37-
/usr/bin/docker exec mu_devops_build_container chown -R vsts_azpcontainer:docker_azpcontainer /.cargo
37+
/usr/bin/docker exec mu_devops_build_container chown -R 1001:1001 /.cargo
3838
/usr/bin/docker exec mu_devops_build_container chmod -R ug+rw /.cargo
39-
/usr/bin/docker exec mu_devops_build_container chown -R vsts_azpcontainer:docker_azpcontainer /.rustup
39+
/usr/bin/docker exec mu_devops_build_container chown -R 1001:1001 /.rustup
4040
/usr/bin/docker exec mu_devops_build_container chmod -R ug+rw /.rustup
4141
condition: and(eq('${{ parameters.container_build }}', 'true'), eq(variables['Agent.OS'], 'Linux'))
4242

Steps/RustSetupSteps.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ steps:
6464
target: host
6565
inputs:
6666
script: |
67-
/usr/bin/docker exec mu_devops_build_container chown -R vsts_azpcontainer:docker_azpcontainer /.cargo
67+
/usr/bin/docker exec mu_devops_build_container chown -R 1001:1001 /.cargo
6868
/usr/bin/docker exec mu_devops_build_container chmod -R ug+rw /.cargo
69-
/usr/bin/docker exec mu_devops_build_container chown -R vsts_azpcontainer:docker_azpcontainer /.rustup
69+
/usr/bin/docker exec mu_devops_build_container chown -R 1001:1001 /.rustup
7070
/usr/bin/docker exec mu_devops_build_container chmod -R ug+rw /.rustup
7171
condition: eq(variables['Agent.OS'], 'Linux')
7272

0 commit comments

Comments
 (0)