Skip to content

fix: remove duplicated envbuilder vars #18144

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

Merged
merged 2 commits into from
Jun 3, 2025
Merged

Conversation

ericpaulsen
Copy link
Member

closes #18137

the locals block in the kubernetes-devcontainer template contains duplicated environment variables which are already present in the envbuilder_cached_image resource.

@ericpaulsen ericpaulsen requested review from johnstcn and matifali May 30, 2025 23:14
@ericpaulsen ericpaulsen self-assigned this May 30, 2025
@ericpaulsen ericpaulsen changed the title fix: rm duplicated envbuilder vars fix: remove duplicated envbuilder vars May 30, 2025
@ericpaulsen ericpaulsen enabled auto-merge (squash) May 30, 2025 23:42
Copy link
Member

@johnstcn johnstcn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found that this breaks non-cached usage of the template:

2025-06-02 10:47:17.530 [warn]  Sending logs via AgentAPI v2  coder_version=v2.22.1+8708d81                                                                                                          
envbuilder v1.1.0+a3a6a83 - Build development environments from repositories in a container                                                                                                          
No Dockerfile specified, looking for a devcontainer.json...                                                                                                                                          
Failed to locate devcontainer.json: open /workspaces/empty/.devcontainer: no such file or directory                                                                                                  
Falling back to the default image... 

We need to ensure that ENVBUILDER_GIT_URL gets passed to the container if var.cache_repo is empty.

@ericpaulsen ericpaulsen requested a review from johnstcn June 3, 2025 13:12
@ericpaulsen ericpaulsen merged commit b0d23ca into main Jun 3, 2025
33 of 34 checks passed
@ericpaulsen ericpaulsen deleted the sharkymark-devcontainer-fix branch June 3, 2025 15:24
@github-actions github-actions bot locked and limited conversation to collaborators Jun 3, 2025
@matifali
Copy link
Member

matifali commented Jun 4, 2025

/cherry-pick release/2.23

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: example kubernetes-devcontainer template duplicates environment variable definitions for envbuilder
3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy