From 543d29bbb1d2c5867b96701f5d85b65d5640d2b7 Mon Sep 17 00:00:00 2001 From: Helder Correia <174525+helderco@users.noreply.github.com> Date: Thu, 14 Apr 2022 23:26:17 +0000 Subject: [PATCH] chore!: Make `dagger.#Address` private MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BREAKING CHANGE: don’t use `dagger.#Address`. Signed-off-by: Helder Correia <174525+helderco@users.noreply.github.com> --- pkg/dagger.io/dagger/plan.cue | 7 +++++-- pkg/dagger.io/dagger/types.cue | 4 ---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/pkg/dagger.io/dagger/plan.cue b/pkg/dagger.io/dagger/plan.cue index 524d4dc2..48c28c2c 100644 --- a/pkg/dagger.io/dagger/plan.cue +++ b/pkg/dagger.io/dagger/plan.cue @@ -24,7 +24,7 @@ package dagger } // Access client network endpoints - network: [address=#Address]: _#clientNetwork & { + network: [address=_#address]: _#clientNetwork & { "address": address } @@ -97,7 +97,7 @@ _#clientNetwork: { // URL to the socket // Example: unix:///var/run/docker.sock - address: #Address + address: _#address { // unix socket or npipe @@ -108,6 +108,9 @@ _#clientNetwork: { } } +// A network service address +_#address: string & =~"^(unix://|npipe://).+" + _#clientEnv: { $dagger: task: _name: "ClientEnv" diff --git a/pkg/dagger.io/dagger/types.cue b/pkg/dagger.io/dagger/types.cue index b78f2f71..c7001409 100644 --- a/pkg/dagger.io/dagger/types.cue +++ b/pkg/dagger.io/dagger/types.cue @@ -32,7 +32,3 @@ package dagger #Socket: { $dagger: service: _id: string } - -// A network service address -#Address: string & =~"^(unix://|npipe://).+" -// TODO: #Address: string & =~"^(tcp://|unix://|npipe://|udp://).+"