#Default value for *dagger.Socket

1 messages · Page 1 of 1 (latest)

limpid saffron
#

Hi everyone, Is it possible to have a default value for a socket so I dont have to pass the argument everytime ? Ideally i'd want it defaulting to the env variable value for SSH_AUTH_SOCK

hasty umbra
limpid saffron
hasty umbra
limpid saffron
#

it would be cleaner than dumping the plain value. this way if this ever changes i dont have to change my user defaults .env file

hasty umbra
limpid saffron
#

sure ! socket is just one example but any other type could benefit from it

limpid saffron
lilac wave
#

I've been experimenting with .env files recently and found the following does seem to expand as expected in v0.19.8

BUILD_SSHSOCKET="unix:$SSH_AUTH_SOCK"
hasty umbra
limpid saffron
hasty umbra
limpid saffron
#

i'll close the GH issue ! i should've updated before raising facepalm