5615 Commits
Author SHA1 Message Date
Nicolas De Loof c428a77111 set fsnotify build tag when building for OSX
Signed-off-by: Nicolas De Loof <[email protected]>
v5.0.2
2026-01-20 13:57:53 +01:00
David Gageot 04b4a832dc chore(lint): add forbidigo rules to enforce t.Context() in tests
Add linter rules to prevent usage of context.Background() and
context.TODO() in test files - t.Context() should be used instead.

The rules only apply to *_test.go files, not production code.

Note: os.Setenv is not covered by forbidigo due to a limitation where
it only catches calls when the return value is assigned. However,
errcheck will flag unchecked os.Setenv calls.

Assisted-By: cagent
Signed-off-by: David Gageot <[email protected]>
2026-01-20 11:34:11 +01:00
David Gageot 27faa3b84e test: replace os.MkdirTemp with t.TempDir()
Use t.TempDir() which automatically cleans up the temporary directory
when the test completes, eliminating the need for manual cleanup.

Go 1.14 modernization pattern.

Assisted-By: cagent
Signed-off-by: David Gageot <[email protected]>
2026-01-20 11:34:11 +01:00
David Gageot bcc0401e0e test: replace os.Setenv with t.Setenv()
Use t.Setenv() which automatically restores the original value when
the test completes, eliminating the need for manual cleanup.

Go 1.18 modernization pattern.

Assisted-By: cagent
Signed-off-by: David Gageot <[email protected]>
2026-01-20 11:34:11 +01:00
David Gageot 093205121c test: replace context.Background()/context.TODO() with t.Context()
Replace manual context creation with t.Context() which is automatically
cancelled when the test completes.

Go 1.24 modernization pattern.

Assisted-By: cagent
Signed-off-by: David Gageot <[email protected]>
2026-01-20 11:34:11 +01:00
Amol Yadav b92b87dd9c fix: robustly handle large file change batches in watch mode
Ensured all watcher and sync goroutines and channels are robustly closed on context cancellation or error.
Added explicit logging for large batches and context cancellation to prevent stuck processes and ensure graceful shutdown on Ctrl-C.

Signed-off-by: Amol Yadav <[email protected]>
2026-01-20 08:34:15 +01:00
hiroto.toyoda 06e1287483 fix: update github.com/moby/term to indirect dependency
Signed-off-by: hiroto.toyoda <[email protected]>
2026-01-19 17:46:55 +01:00
hiroto.toyoda d7bdb34ff5 refactor(attach): remove unused stdin from getContainerStream
Signed-off-by: hiroto.toyoda <[email protected]>
2026-01-19 17:46:55 +01:00
hiroto.toyoda 79d7a8acd6 refactor(attach): simplify attachContainerStreams signature
Signed-off-by: hiroto.toyoda <[email protected]>
2026-01-19 17:46:55 +01:00
hiroto.toyoda abd99be4fd refactor(attach): remove unused detach watcher and keep attach behavior
Signed-off-by: hiroto.toyoda <[email protected]>
2026-01-19 17:46:55 +01:00
hiroto.toyoda 2672d34217 Improve error handling in attach.go
Signed-off-by: hiroto.toyoda <[email protected]>
2026-01-19 17:46:55 +01:00
Nicolas De Loof 27bf40357a Bump compose to v2.10.1
Signed-off-by: Nicolas De Loof <[email protected]>
2026-01-19 16:46:17 +01:00
Nicolas De Loof c8d687599a Fixed progress UI to adapt to terminal width
Signed-off-by: Nicolas De Loof <[email protected]>
2026-01-19 11:14:23 +01:00
Stavros Kois 2f108ffaa8 handle healthcheck.disable true in isServiceHealthy
Signed-off-by: Stavros Kois <[email protected]>
2026-01-19 10:18:34 +01:00
Sebastiaan van Stijn 0a07df0e5b build(deps): bump github.com/sirupsen/logrus v1.9.4
full diff: https://github.com/sirupsen/logrus/compare/v1.9.3...v1.9.4

Signed-off-by: Sebastiaan van Stijn <[email protected]>
2026-01-15 19:45:49 +01:00
tensorworker 02b606ef8e use go-compose instead Signed-off-by: tensorworker <[email protected]>
Signed-off-by: tensorworker <[email protected]>
2026-01-15 08:24:20 +01:00
tensorworker 9856802945 fix: expand tilde in --env-file paths to user home directory
When using --env-file=~/.env, the tilde was not expanded to the user's
home directory. Instead, it was treated as a literal character and
resolved relative to the current working directory, resulting in errors
like "couldn't find env file: /current/dir/~/.env".

This adds an ExpandUser function that expands ~ to the home directory
before converting relative paths to absolute paths.

Fixes #13508

Signed-off-by: tensorworker <[email protected]>
2026-01-15 08:24:20 +01:00
Adam Sven Johnson 63ae7eb0fa Replace tabbed indentation in sdk.md
Tabs and spaces were mixed in the example code which didn't indent cleanly in the github preview.

Signed-off-by: Adam Sven Johnson <[email protected]>
2026-01-14 07:56:25 +01:00
dependabot[bot] f17d0dfc61 build(deps): bump github.com/go-viper/mapstructure/v2
Bumps [github.com/go-viper/mapstructure/v2](https://github.com/go-viper/mapstructure) from 2.4.0 to 2.5.0.
- [Release notes](https://github.com/go-viper/mapstructure/releases)
- [Changelog](https://github.com/go-viper/mapstructure/blob/main/CHANGELOG.md)
- [Commits](https://github.com/go-viper/mapstructure/compare/v2.4.0...v2.5.0)

---
updated-dependencies:
- dependency-name: github.com/go-viper/mapstructure/v2
  dependency-version: 2.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-01-13 10:21:23 +01:00
dependabot[bot] ef14cfcfea build(deps): bump google.golang.org/grpc from 1.77.0 to 1.78.0
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.77.0 to 1.78.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.77.0...v1.78.0)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-version: 1.78.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-01-12 17:50:14 +01:00
hiroto.toyoda b760afaf9f refactor: extract API version constants to dedicated file
Signed-off-by: hiroto.toyoda <[email protected]>
2026-01-11 17:04:40 +01:00
dependabot[bot] a2a5c86f53 build(deps): bump golang.org/x/sys from 0.39.0 to 0.40.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.39.0 to 0.40.0.
- [Commits](https://github.com/golang/sys/compare/v0.39.0...v0.40.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-version: 0.40.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-01-09 10:22:48 +01:00
Sebastiaan van Stijn 98e82127b3 build(deps): bump github.com/containerd/containerd/v2 to v2.2.1
The pull request that was needed has been released now as part of v2.2.1;
full diff: https://github.com/containerd/containerd/compare/efd86f2b0bc2...v2.2.1

Signed-off-by: Sebastiaan van Stijn <[email protected]>
2026-01-08 11:33:06 +01:00
Sebastiaan van Stijn 03e19e4a84 go.mod: remove exclude rules
Commit 640c7deae0 added these exclude
rules as a temporary workaround until these transitive dependency
versions would be gone;

> downgrade go-difflib and go-spew to tagged releases
>
> These dependencies were updated to "master" in some modules we depend on,
> but have no code-changes since their last release. Unfortunately, this also
> causes a ripple effect, forcing all users of the containerd module to also
> update these dependencies to an unrelease / un-tagged version.
>
> Both these dependencies will unlikely do a new release in the near future,
> so exclude these versions so that we can downgrade to the current release.

Kubernetes, and other dependencies have reverted those bumps, so these
exclude rules are no longer needed.

This reverts commit 640c7deae0.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
2026-01-08 07:07:57 +01:00
Sebastiaan van Stijn b2c17ff118 build(deps): bump github.com/klauspost/compress to v1.18.2
Fixes a regression in v1.18.1 that resulted in invalid flate/zip/gzip encoding.
The v1.18.1 tag has been retracted.

full diff: https://github.com/klauspost/compress/compare/v1.18.1...v1.18.2

Signed-off-by: Sebastiaan van Stijn <[email protected]>
2026-01-07 14:03:12 +01:00
Nicolas De Loof ec88588cd8 Removed build warning when no explicit build has been requested.
Signed-off-by: Nicolas De Loof <[email protected]>
2026-01-05 13:17:20 +01:00
Jan-Robin Aumann-O'Keefe 7d5913403a add service name completion to down command
Signed-off-by: Jan-Robin Aumann-O'Keefe <[email protected]>
2026-01-05 09:32:39 +01:00
hiroto.toyoda d95aa57f01 fix: avoid setting timeout when waitTimeout is not positive
Signed-off-by: hiroto.toyoda <[email protected]>
2026-01-05 09:31:14 +01:00
hiroto.toyoda ee4c01b66b fix: correctly use errgroup.WithContext
Signed-off-by: hiroto.toyoda <[email protected]>
2026-01-05 09:27:46 +01:00
hiroto.toyoda d7a65f53f8 fix: correct typo in isSwarmEnabled method name
Signed-off-by: hiroto.toyoda <[email protected]>
2026-01-05 09:11:58 +01:00
hiroto.toyoda 4520bcbaf6 fix: clean up temporary compose files after conversion
Signed-off-by: hiroto.toyoda <[email protected]>
2026-01-05 09:01:56 +01:00
hiroto.toyoda 327be1fcd5 add unit test
Signed-off-by: hiroto.toyoda <[email protected]>
2026-01-05 08:15:02 +01:00
Ignacio López Luna 59f04b85af remove duplicated version field
Signed-off-by: Ignacio López Luna <[email protected]>
2025-12-18 15:24:06 +01:00
Ignacio López Luna b4574c8bd6 do not strip build metadata
Signed-off-by: Ignacio López Luna <[email protected]>
2025-12-18 15:24:06 +01:00
Ignacio López Luna 29d6c918c4 use github.com/docker/docker/api/types/versions for comparing versions and store plugin version obtained by pluginManager in newModelAPI
Signed-off-by: Ignacio López Luna <[email protected]>
2025-12-18 15:24:06 +01:00
Ignacio López Luna 58403169f3 Only append RuntimeFlags if docker model CLI version is >= v1.0.6
Signed-off-by: Ignacio López Luna <[email protected]>
2025-12-18 15:24:06 +01:00
Ignacio López Luna 6aee7f8370 gets back runtime flags when configuring models
Signed-off-by: Ignacio López Luna <[email protected]>
2025-12-18 15:24:06 +01:00
Nicolas De Loof c89b8a2d6b warn user no service has been selected to build
Signed-off-by: Nicolas De Loof <[email protected]>
v5.0.1
2025-12-18 11:35:33 +01:00
Nicolas De Loof aec9f54176 check model plugin is successfully loaded and store version
Signed-off-by: Nicolas De Loof <[email protected]>
2025-12-18 11:01:35 +01:00
dependabot[bot] 232197d364 build(deps): bump github.com/moby/buildkit from 0.26.2 to 0.26.3
Bumps [github.com/moby/buildkit](https://github.com/moby/buildkit) from 0.26.2 to 0.26.3.
- [Release notes](https://github.com/moby/buildkit/releases)
- [Commits](https://github.com/moby/buildkit/compare/v0.26.2...v0.26.3)

---
updated-dependencies:
- dependency-name: github.com/moby/buildkit
  dependency-version: 0.26.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2025-12-17 10:16:54 +01:00
dependabot[bot] 81ba889bee build(deps): bump tags.cncf.io/container-device-interface
Bumps [tags.cncf.io/container-device-interface](https://github.com/cncf-tags/container-device-interface) from 1.0.1 to 1.1.0.
- [Release notes](https://github.com/cncf-tags/container-device-interface/releases)
- [Changelog](https://github.com/cncf-tags/container-device-interface/blob/main/RELEASE.md)
- [Commits](https://github.com/cncf-tags/container-device-interface/compare/v1.0.1...v1.1.0)

---
updated-dependencies:
- dependency-name: tags.cncf.io/container-device-interface
  dependency-version: 1.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2025-12-16 09:34:43 +01:00
Nicolas De Loof 8e5b25c0f1 Restored support for BUILDKIT_PROGRESS.
Signed-off-by: Nicolas De Loof <[email protected]>
2025-12-15 18:03:04 +01:00
Nicolas De Loof d4c1987638 Prevented incorrect progress metrics to break compose display.
Signed-off-by: Nicolas De Loof <[email protected]>
2025-12-15 18:02:31 +01:00
Nicolas De Loof 1297f97aef prefer aec library over raw ANSI sequences
Signed-off-by: Nicolas De Loof <[email protected]>
2025-12-15 16:36:57 +01:00
hiroto.toyoda 55cded1806 Avoid reassigning err variable
Signed-off-by: hiroto.toyoda <[email protected]>
2025-12-15 15:18:54 +01:00
hiroto.toyoda 6c043929a0 Fix missing error handling in setEnvWithDotEnv
Signed-off-by: hiroto.toyoda <[email protected]>
2025-12-15 15:18:54 +01:00
Alexis Lefebvre 2750330566 doc: do not mention v2 on README
Signed-off-by: Alexis Lefebvre <[email protected]>
2025-12-15 11:46:38 +01:00
Nicolas De Loof e22426443e Introduced fsnotify build tag to select watcher implementation
Signed-off-by: Nicolas De Loof <[email protected]>
2025-12-15 10:16:12 +01:00
Guillaume Lours 6599f8ad84 add 'configured' event at the end of model configuration phase
Currently when using models, the final message is 'confugiring' which could let users think the DMR configuration is still pending

Signed-off-by: Guillaume Lours <[email protected]>

# Conflicts:
#	pkg/api/event.go
2025-12-15 10:14:21 +01:00
Nicolas De Loof 3853ad3911 prefer *task for memory efficiency updating tasks
Signed-off-by: Nicolas De Loof <[email protected]>
2025-12-12 14:22:02 +01:00