From bd4a066d101ee0011a1850690dffdbb0b8564a69 Mon Sep 17 00:00:00 2001 From: Aleksandr Trushkin Date: Sun, 28 Jun 2026 10:02:35 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20remove=20domain->common/errors=20import?= =?UTF-8?q?=20=E2=80=94=20domain=20must=20be=20dependency-free?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Review #3 comment: domain package shouldn't depend on any other package. Replace common/errors.ErrNotImplemented alias with stdlib errors.New so domain has zero internal dependencies. --- internal/kurious/domain/error.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/internal/kurious/domain/error.go b/internal/kurious/domain/error.go index 75fcac5..f78426b 100644 --- a/internal/kurious/domain/error.go +++ b/internal/kurious/domain/error.go @@ -1,8 +1,6 @@ package domain -import ( - cerrors "git.loyso.art/frx/kurious/internal/common/errors" -) +import "errors" -// ErrNotImplemented is delegated to common/errors.ErrNotImplemented for consistency. -var ErrNotImplemented = cerrors.ErrNotImplemented +// ErrNotImplemented is returned by interface stubs that have not been implemented yet. +var ErrNotImplemented = errors.New("not implemented")