Skip to content

mount cache support - #104

Merged
aluzzardi merged 1 commit into
mainfrom
mnt-cache
Feb 5, 2021
Merged

aluzzardi merged 1 commit into
mainfrom
mnt-cache

Conversation

@aluzzardi

Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Andrea Luzzardi <[email protected]>
@aluzzardi
aluzzardi merged commit 5b7bc78 into main Feb 5, 2021
@aluzzardi
aluzzardi deleted the mnt-cache branch February 5, 2021 23:18
aluzzardi pushed a commit that referenced this pull request Sep 16, 2022
…s-introduction

Fix YAML formatting in introduction.md
shykes added a commit that referenced this pull request Jun 12, 2026
Redesign Workspace.moduleInit per the CLI 1.0 split: the engine plans the
workspace changes and returns a Changeset; the caller previews and
applies via the standard changeset path. No filesystem write happens
inside the function (modulo the workspace's existing initialize-on-write
behavior in loadWorkspaceConfigForMutation, which is a separate cleanup).

Argument changes:
- New `path` (workspace-relative). Defaults to ".dagger/modules/<name>".
  Using the default also adds [modules.<name>] = <path>; explicit --path
  skips the install step (the user is managing layout).
- Drop `selfCalls`. The feature graduated to a runtime-capability check
  in the previous commit; the per-module opt-in no longer surfaces.

Body changes:
- One Changeset composed of: dagger-module.toml + SDK codegen output at
  `path`, [sdks.<sdk-name>] install (if new), [[sdks.<sdk-name>.modules]]
  authoring entry, and optional [modules.<name>] install.
- Workspace config is updated via workspace.UpdateConfigBytes
  (format-preserving) and staged into the diff alongside the codegen
  output.
- Conflicts: refuse if the name is already installed, or if any SDK
  already authors a module at the target path.

The SDK ref is currently used directly as the runtime ref written to
dagger-module.toml. The targetRuntime introspection that lets an SDK
delegate execution to a separate runtime module lands in #104.

Schema-breaking changes for this PR are contained — main has zero
callers of Workspace.moduleInit. SDK codegen surfaces will regenerate
with the new arg shape on next codegen run.
eunomie pushed a commit to eunomie/dagger that referenced this pull request Jun 16, 2026
Redesign Workspace.moduleInit per the CLI 1.0 split: the engine plans the
workspace changes and returns a Changeset; the caller previews and
applies via the standard changeset path. No filesystem write happens
inside the function (modulo the workspace's existing initialize-on-write
behavior in loadWorkspaceConfigForMutation, which is a separate cleanup).

Argument changes:
- New `path` (workspace-relative). Defaults to ".dagger/modules/<name>".
  Using the default also adds [modules.<name>] = <path>; explicit --path
  skips the install step (the user is managing layout).
- Drop `selfCalls`. The feature graduated to a runtime-capability check
  in the previous commit; the per-module opt-in no longer surfaces.

Body changes:
- One Changeset composed of: dagger-module.toml + SDK codegen output at
  `path`, [sdks.<sdk-name>] install (if new), [[sdks.<sdk-name>.modules]]
  authoring entry, and optional [modules.<name>] install.
- Workspace config is updated via workspace.UpdateConfigBytes
  (format-preserving) and staged into the diff alongside the codegen
  output.
- Conflicts: refuse if the name is already installed, or if any SDK
  already authors a module at the target path.

The SDK ref is currently used directly as the runtime ref written to
dagger-module.toml. The targetRuntime introspection that lets an SDK
delegate execution to a separate runtime module lands in dagger#104.

Schema-breaking changes for this PR are contained — main has zero
callers of Workspace.moduleInit. SDK codegen surfaces will regenerate
with the new arg shape on next codegen run.

Signed-off-by: Solomon Hykes <[email protected]>
eunomie pushed a commit to eunomie/dagger that referenced this pull request Jun 16, 2026
Redesign Workspace.moduleInit per the CLI 1.0 split: the engine plans the
workspace changes and returns a Changeset; the caller previews and
applies via the standard changeset path. No filesystem write happens
inside the function (modulo the workspace's existing initialize-on-write
behavior in loadWorkspaceConfigForMutation, which is a separate cleanup).

Argument changes:
- New `path` (workspace-relative). Defaults to ".dagger/modules/<name>".
  Using the default also adds [modules.<name>] = <path>; explicit --path
  skips the install step (the user is managing layout).
- Drop `selfCalls`. The feature graduated to a runtime-capability check
  in the previous commit; the per-module opt-in no longer surfaces.

Body changes:
- One Changeset composed of: dagger-module.toml + SDK codegen output at
  `path`, [sdks.<sdk-name>] install (if new), [[sdks.<sdk-name>.modules]]
  authoring entry, and optional [modules.<name>] install.
- Workspace config is updated via workspace.UpdateConfigBytes
  (format-preserving) and staged into the diff alongside the codegen
  output.
- Conflicts: refuse if the name is already installed, or if any SDK
  already authors a module at the target path.

The SDK ref is currently used directly as the runtime ref written to
dagger-module.toml. The targetRuntime introspection that lets an SDK
delegate execution to a separate runtime module lands in dagger#104.

Schema-breaking changes for this PR are contained — main has zero
callers of Workspace.moduleInit. SDK codegen surfaces will regenerate
with the new arg shape on next codegen run.

Signed-off-by: Solomon Hykes <[email protected]>
eunomie pushed a commit that referenced this pull request Jun 17, 2026
Redesign Workspace.moduleInit per the CLI 1.0 split: the engine plans the
workspace changes and returns a Changeset; the caller previews and
applies via the standard changeset path. No filesystem write happens
inside the function (modulo the workspace's existing initialize-on-write
behavior in loadWorkspaceConfigForMutation, which is a separate cleanup).

Argument changes:
- New `path` (workspace-relative). Defaults to ".dagger/modules/<name>".
  Using the default also adds [modules.<name>] = <path>; explicit --path
  skips the install step (the user is managing layout).
- Drop `selfCalls`. The feature graduated to a runtime-capability check
  in the previous commit; the per-module opt-in no longer surfaces.

Body changes:
- One Changeset composed of: dagger-module.toml + SDK codegen output at
  `path`, [sdks.<sdk-name>] install (if new), [[sdks.<sdk-name>.modules]]
  authoring entry, and optional [modules.<name>] install.
- Workspace config is updated via workspace.UpdateConfigBytes
  (format-preserving) and staged into the diff alongside the codegen
  output.
- Conflicts: refuse if the name is already installed, or if any SDK
  already authors a module at the target path.

The SDK ref is currently used directly as the runtime ref written to
dagger-module.toml. The targetRuntime introspection that lets an SDK
delegate execution to a separate runtime module lands in #104.

Schema-breaking changes for this PR are contained — main has zero
callers of Workspace.moduleInit. SDK codegen surfaces will regenerate
with the new arg shape on next codegen run.

Signed-off-by: Solomon Hykes <[email protected]>
eunomie pushed a commit that referenced this pull request Jun 18, 2026
Redesign Workspace.moduleInit per the CLI 1.0 split: the engine plans the
workspace changes and returns a Changeset; the caller previews and
applies via the standard changeset path. No filesystem write happens
inside the function (modulo the workspace's existing initialize-on-write
behavior in loadWorkspaceConfigForMutation, which is a separate cleanup).

Argument changes:
- New `path` (workspace-relative). Defaults to ".dagger/modules/<name>".
  Using the default also adds [modules.<name>] = <path>; explicit --path
  skips the install step (the user is managing layout).
- Drop `selfCalls`. The feature graduated to a runtime-capability check
  in the previous commit; the per-module opt-in no longer surfaces.

Body changes:
- One Changeset composed of: dagger-module.toml + SDK codegen output at
  `path`, [sdks.<sdk-name>] install (if new), [[sdks.<sdk-name>.modules]]
  authoring entry, and optional [modules.<name>] install.
- Workspace config is updated via workspace.UpdateConfigBytes
  (format-preserving) and staged into the diff alongside the codegen
  output.
- Conflicts: refuse if the name is already installed, or if any SDK
  already authors a module at the target path.

The SDK ref is currently used directly as the runtime ref written to
dagger-module.toml. The targetRuntime introspection that lets an SDK
delegate execution to a separate runtime module lands in #104.

Schema-breaking changes for this PR are contained — main has zero
callers of Workspace.moduleInit. SDK codegen surfaces will regenerate
with the new arg shape on next codegen run.

Signed-off-by: Solomon Hykes <[email protected]>
tiborvass pushed a commit that referenced this pull request Jun 19, 2026
Redesign Workspace.moduleInit per the CLI 1.0 split: the engine plans the
workspace changes and returns a Changeset; the caller previews and
applies via the standard changeset path. No filesystem write happens
inside the function (modulo the workspace's existing initialize-on-write
behavior in loadWorkspaceConfigForMutation, which is a separate cleanup).

Argument changes:
- New `path` (workspace-relative). Defaults to ".dagger/modules/<name>".
  Using the default also adds [modules.<name>] = <path>; explicit --path
  skips the install step (the user is managing layout).
- Drop `selfCalls`. The feature graduated to a runtime-capability check
  in the previous commit; the per-module opt-in no longer surfaces.

Body changes:
- One Changeset composed of: dagger-module.toml + SDK codegen output at
  `path`, [sdks.<sdk-name>] install (if new), [[sdks.<sdk-name>.modules]]
  authoring entry, and optional [modules.<name>] install.
- Workspace config is updated via workspace.UpdateConfigBytes
  (format-preserving) and staged into the diff alongside the codegen
  output.
- Conflicts: refuse if the name is already installed, or if any SDK
  already authors a module at the target path.

The SDK ref is currently used directly as the runtime ref written to
dagger-module.toml. The targetRuntime introspection that lets an SDK
delegate execution to a separate runtime module lands in #104.

Schema-breaking changes for this PR are contained — main has zero
callers of Workspace.moduleInit. SDK codegen surfaces will regenerate
with the new arg shape on next codegen run.

Signed-off-by: Solomon Hykes <[email protected]>
grouville added a commit that referenced this pull request Sep 21, 2026
Every dagger process spent 23ms building Unicode width tables before it
started, whether or not it ever printed a character.

go-runewidth v0.0.27 builds a two-megabyte lookup table covering every
code point in its package init, so the cost lands on anything that links
it. In our case that is the TUI, through charmbracelet, so it lands on
every CLI invocation; the engine's init binary, which runs inside every
withExec, links it too.

v0.0.30 fills only the first 0x300 entries eagerly and builds the rest on
the first lookup that needs them, which is the fix for their issue #104.
Same results, and the table is no longer built at all for a process that
prints no wide characters. The release also carries upstream fixes to
grapheme wrapping and to non-positive wrap widths.

Measured with `dagger version`, which starts no engine, medians of 8
interleaved pairs on Linux:

    startup              54ms   -> 32ms
    package init total   49ms   -> 24ms   (go inittrace)
    of which runewidth   24ms   -> 0.06ms
    peak memory          49.7MB -> 44.0MB

What remains in that 24ms is mostly chroma, which builds its lexer and
style registries the same eager way; that one has to be fixed upstream
before we can drop it.

Verify:
  go test github.com/mattn/go-runewidth
  go test ./internal/cmd/dagger -run TestWriteWorkspaceSettingsTable
  GODEBUG=inittrace=1 dagger version 2>&1 >/dev/null | grep runewidth
Signed-off-by: Guillaume de Rouville <[email protected]>
sipsma added a commit that referenced this pull request Nov 11, 2026
…whole

A Go module's first runtime build on a fresh engine found each of its ~450
dependency packages in the image's entries, but one at a time: the image
shipped each package's build and not the dependency call that builds them,
which a module's own imports make unique to it.

The built-in Go SDK now builds every runtime with dagger/go's shared
imports set to what generated code imports (GoSDKSharedImports). dagger/go
then compiles the packages those reach in dependency calls of their own,
the standard library's and the rest's, which are the same calls in every
module that keeps the SDK's versions of those packages' modules, whatever
else it imports. The image's build makes those calls for its seed and
ships their results with the package builds, so a fresh engine finds each
call whole, and looks up only the module's own other packages.

It moves the built-in Go SDK's dagger/go pin to the commit that adds
sharedImports and sharedDependencies (dagger/go #104), and the workspace's
go-sdk pin to a go-sdk commit whose daggerGo names the same dagger/go, which
the image's build requires of the two.

Signed-off-by: Erik Sipsma <[email protected]>
sipsma added a commit that referenced this pull request Nov 11, 2026
…whole

A Go module's first runtime build on a fresh engine found each of its ~450
dependency packages in the image's entries, but one at a time: the image
shipped each package's build and not the dependency call that builds them,
which a module's own imports make unique to it.

The built-in Go SDK now builds every runtime with dagger/go's shared
imports set to what generated code imports (GoSDKSharedImports). dagger/go
then compiles the packages those reach in dependency calls of their own,
the standard library's and the rest's, which are the same calls in every
module that keeps the SDK's versions of those packages' modules, whatever
else it imports. The image's build makes those calls for its seed and
ships their results with the package builds, so a fresh engine finds each
call whole, and looks up only the module's own other packages.

It moves the built-in Go SDK's dagger/go pin to the commit that adds
sharedImports and sharedDependencies (dagger/go #104), and the workspace's
go-sdk pin to a go-sdk commit whose daggerGo names the same dagger/go, which
the image's build requires of the two.

Signed-off-by: Erik Sipsma <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants