buildpacks / pack

CLI for building apps using Cloud Native Buildpacks
https://buildpacks.io
Apache License 2.0
2.46k stars 278 forks source link

setting remote config doesn't respect Ctrl+C #1242

Open Aergonus opened 2 years ago

Aergonus commented 2 years ago

Description

Crtl+C does not abort hanging query

$ pack config default-builder myremotehub.com/buildpacks/builder:latest -v
Verifying local image...
Verifying remote image...

^C^C^C^C^C^C^C^C^C^C^C^CERROR: validating that builder myremotehub.com/buildpacks/builder:latest exists: failed to inspect remote image myremotehub.com/buildpacks/builder:latest: fetching builder image: connect to repo store "myremotehub.com/buildpacks/builder:latest": Get "https://myremotehub.com/v2/": net/http: TLS handshake timeout

Proposed solution

Add handler for SIGINT to abort quickly

Describe alternatives you've considered

Add a note to pull down the image in the error logs

Additional context

$ pack --version
0.19.0+git-360dbae.build-2550

https://github.com/buildpacks/pack/pull/1145 relates, pulling does work if I have access

to simulate this, set your proxy to forward to /dev/null

sagnik3788 commented 5 months ago

@natalieparellano may i give it a try