You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if you use dc_resource's new_name argument, docker compose resources with depends_on should not have changed behavior.
Current Behavior
if you use dc_resource's new_name argument, it correctly renames that resource, but you get warnings in the Tiltfile that dependencies were ignored. This could potentially cause issues due to race conditions, etc. Adding in resource_deps to match the new name doesn't make any change.
The below repro steps produce this error:
resource app specified a dependency on unknown resource redis - dependency ignored
$ tilt doctor
Tilt: v0.33.11, built 2024-02-15
System: linux-amd64
---
Docker
- Host: unix:///var/run/docker.sock
- Server Version: 25.0.3
- API Version: 1.44
- Builder: 2
- Compose Version: v2.24.5-desktop.1
---
Kubernetes
- Env: eks
- Context: arn:aws:eks:us-west-2:**********
- Cluster Name: arn:aws:eks:us-west-2:**********
- Namespace: default
- Cluster Local Registry: none
---
```
About Your Use Case
Ultimately, my goal was to shorten the sidebar in Tilt's web GUI. It appears that using new_name changes the display name there without changing the docker container name, which is what I want, but using new_name appears to breaks dependencies. I first tried using workload_to_resource_function, but when that didn't work, I filed #6324 . Then I tried new_name and that didn't quite work right, either.
The text was updated successfully, but these errors were encountered:
Expected Behavior
if you use
dc_resource
'snew_name
argument, docker compose resources withdepends_on
should not have changed behavior.Current Behavior
if you use
dc_resource
'snew_name
argument, it correctly renames that resource, but you get warnings in theTiltfile
that dependencies were ignored. This could potentially cause issues due to race conditions, etc. Adding inresource_deps
to match the new name doesn't make any change.The below repro steps produce this error:
As a result,
app
does not startSteps to Reproduce
git clone git@github.com:tilt-dev/tilt-example-docker-compose.git
docker-compose.yml
so thatapp
hasdepends_on: redis
:Tiltfile
so thatredis
is renamed tomyredis
tilt up
Context
tilt doctor
OutputClick to `tilt doctor` output
About Your Use Case
Ultimately, my goal was to shorten the sidebar in Tilt's web GUI. It appears that using
new_name
changes the display name there without changing the docker container name, which is what I want, but using new_name appears to breaks dependencies. I first tried usingworkload_to_resource_function
, but when that didn't work, I filed #6324 . Then I triednew_name
and that didn't quite work right, either.The text was updated successfully, but these errors were encountered: