refactor: swap pkg/{io,log} imports to go-io/go-log

Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
Snider 2026-03-06 12:35:24 +00:00
parent 8e8d356616
commit 278e89e292
104 changed files with 132 additions and 120 deletions

View file

@ -11,7 +11,7 @@ import (
"text/template"
"time"
"forge.lthn.ai/core/go/pkg/log"
"forge.lthn.ai/core/go-log"
)
// Executor runs Ansible playbooks.

View file

@ -9,7 +9,7 @@ import (
"slices"
"strings"
"forge.lthn.ai/core/go/pkg/log"
"forge.lthn.ai/core/go-log"
"gopkg.in/yaml.v3"
)

View file

@ -12,7 +12,7 @@ import (
"sync"
"time"
"forge.lthn.ai/core/go/pkg/log"
"forge.lthn.ai/core/go-log"
"golang.org/x/crypto/ssh"
"golang.org/x/crypto/ssh/knownhosts"
)

View file

@ -12,7 +12,7 @@ import (
"path/filepath"
"strings"
io_interface "forge.lthn.ai/core/go/pkg/io"
io_interface "forge.lthn.ai/core/go-io"
"github.com/Snider/Borg/pkg/compress"
)

View file

@ -11,7 +11,7 @@ import (
"testing"
"github.com/Snider/Borg/pkg/compress"
io_interface "forge.lthn.ai/core/go/pkg/io"
io_interface "forge.lthn.ai/core/go-io"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -6,7 +6,7 @@ package build
import (
"context"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
)
// ProjectType represents a detected project type.

View file

@ -18,7 +18,7 @@ import (
"forge.lthn.ai/core/go-devops/build/builders"
"forge.lthn.ai/core/go-devops/build/signing"
"forge.lthn.ai/core/go-i18n"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
)
// runProjectBuild handles the main `core build` command with auto-detection.

View file

@ -7,7 +7,7 @@ import (
"os"
"forge.lthn.ai/core/cli/pkg/cli"
"forge.lthn.ai/core/go/pkg/framework/core"
"forge.lthn.ai/core/go-log"
"forge.lthn.ai/core/go-i18n"
"forge.lthn.ai/core/go-devops/release"
)
@ -46,7 +46,7 @@ func runRelease(ctx context.Context, dryRun bool, version string, draft, prerele
// Get current directory
projectDir, err := os.Getwd()
if err != nil {
return core.E("release", "get working directory", err)
return log.E("release", "get working directory", err)
}
// Check for release config
@ -56,13 +56,13 @@ func runRelease(ctx context.Context, dryRun bool, version string, draft, prerele
i18n.T("cmd.build.release.error.no_config"),
)
cli.Print(" %s\n", buildDimStyle.Render(i18n.T("cmd.build.release.hint.create_config")))
return core.E("release", "config not found", nil)
return log.E("release", "config not found", nil)
}
// Load configuration
cfg, err := release.LoadConfig(projectDir)
if err != nil {
return core.E("release", "load config", err)
return log.E("release", "load config", err)
}
// Apply CLI overrides

View file

@ -12,7 +12,7 @@ import (
"strings"
"forge.lthn.ai/core/go-devops/build"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
)
// CPPBuilder implements the Builder interface for C++ projects using CMake + Conan.

View file

@ -6,7 +6,7 @@ import (
"testing"
"forge.lthn.ai/core/go-devops/build"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -11,7 +11,7 @@ import (
"strings"
"forge.lthn.ai/core/go-devops/build"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
)
// DockerBuilder builds Docker images.

View file

@ -6,7 +6,7 @@ import (
"testing"
"forge.lthn.ai/core/go-devops/build"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -11,7 +11,7 @@ import (
"strings"
"forge.lthn.ai/core/go-devops/build"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
)
// GoBuilder implements the Builder interface for Go projects.

View file

@ -8,7 +8,7 @@ import (
"testing"
"forge.lthn.ai/core/go-devops/build"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -11,7 +11,7 @@ import (
"strings"
"forge.lthn.ai/core/go-devops/build"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
)
// LinuxKitBuilder builds LinuxKit images.

View file

@ -6,7 +6,7 @@ import (
"testing"
"forge.lthn.ai/core/go-devops/build"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -11,7 +11,7 @@ import (
"strings"
"forge.lthn.ai/core/go-devops/build"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
)
// TaskfileBuilder builds projects using Taskfile (https://taskfile.dev/).

View file

@ -6,7 +6,7 @@ import (
"testing"
"forge.lthn.ai/core/go-devops/build"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -10,7 +10,7 @@ import (
"strings"
"forge.lthn.ai/core/go-devops/build"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
)
// WailsBuilder implements the Builder interface for Wails v3 projects.

View file

@ -9,7 +9,7 @@ import (
"testing"
"forge.lthn.ai/core/go-devops/build"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -12,7 +12,7 @@ import (
"strings"
io_interface "forge.lthn.ai/core/go/pkg/io"
io_interface "forge.lthn.ai/core/go-io"
)
// Checksum computes SHA256 for an artifact and returns the artifact with the Checksum field filled.

View file

@ -6,7 +6,7 @@ import (
"strings"
"testing"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -9,7 +9,7 @@ import (
"path/filepath"
"forge.lthn.ai/core/go-devops/build/signing"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
"gopkg.in/yaml.v3"
)

View file

@ -5,7 +5,7 @@ import (
"path/filepath"
"testing"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -4,7 +4,7 @@ import (
"path/filepath"
"slices"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
)
// Marker files for project type detection.

View file

@ -5,7 +5,7 @@ import (
"path/filepath"
"testing"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -7,7 +7,7 @@ import (
"os/exec"
"runtime"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
)
// MacOSSigner signs binaries using macOS codesign.

View file

@ -5,7 +5,7 @@ import (
"runtime"
"testing"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
"github.com/stretchr/testify/assert"
)

View file

@ -6,7 +6,7 @@ import (
"fmt"
"os/exec"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
)
// GPGSigner signs files using GPG.

View file

@ -4,7 +4,7 @@ import (
"context"
"testing"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
"github.com/stretchr/testify/assert"
)

View file

@ -6,7 +6,7 @@ import (
"fmt"
"runtime"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
)
// Artifact represents a build output that can be signed.

View file

@ -6,7 +6,7 @@ import (
"os"
"strings"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
)
// Signer defines the interface for code signing implementations.

View file

@ -5,7 +5,7 @@ import (
"runtime"
"testing"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
"github.com/stretchr/testify/assert"
)

View file

@ -3,7 +3,7 @@ package signing
import (
"context"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
)
// WindowsSigner signs binaries using Windows signtool (placeholder).

View file

@ -15,10 +15,10 @@ import (
"strings"
"forge.lthn.ai/core/cli/pkg/cli"
core "forge.lthn.ai/core/go/pkg/framework/core"
core "forge.lthn.ai/core/go-log"
"forge.lthn.ai/core/go-scm/git"
"forge.lthn.ai/core/go-i18n"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
"forge.lthn.ai/core/go/pkg/repos"
)

View file

@ -10,7 +10,7 @@ import (
"forge.lthn.ai/core/cli/pkg/cli"
"forge.lthn.ai/core/go-i18n"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
"forge.lthn.ai/core/go/pkg/repos"
)

View file

@ -8,7 +8,7 @@ import (
"forge.lthn.ai/core/cli/pkg/cli"
"forge.lthn.ai/core/go-scm/git"
"forge.lthn.ai/core/go-i18n"
coreio "forge.lthn.ai/core/go/pkg/io"
coreio "forge.lthn.ai/core/go-io"
)
// Commit command flags

View file

@ -17,8 +17,8 @@ import (
"forge.lthn.ai/core/cli/pkg/cli"
"forge.lthn.ai/core/go-scm/git"
"forge.lthn.ai/core/go-i18n"
coreio "forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go/pkg/log"
coreio "forge.lthn.ai/core/go-io"
"forge.lthn.ai/core/go-log"
"forge.lthn.ai/core/go/pkg/repos"
)

View file

@ -6,7 +6,7 @@ import (
"forge.lthn.ai/core/cli/pkg/cli"
"forge.lthn.ai/core/go-i18n"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
"forge.lthn.ai/core/go/pkg/repos"
)

View file

@ -10,7 +10,7 @@ import (
"forge.lthn.ai/core/cli/pkg/cli" // Added
"forge.lthn.ai/core/go-i18n" // Added
coreio "forge.lthn.ai/core/go/pkg/io"
coreio "forge.lthn.ai/core/go-io"
// Added
"golang.org/x/text/cases"
"golang.org/x/text/language"

View file

@ -9,7 +9,7 @@ import (
"forge.lthn.ai/core/cli/pkg/cli"
"forge.lthn.ai/core/go-devops/devops"
"forge.lthn.ai/core/go-i18n"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
)
// addVMCommands adds the dev environment VM commands to the dev parent command.

View file

@ -9,7 +9,7 @@ import (
"forge.lthn.ai/core/cli/pkg/cli"
"forge.lthn.ai/core/go-i18n"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
"forge.lthn.ai/core/go/pkg/repos"
)

View file

@ -4,7 +4,7 @@ import (
"path/filepath"
"testing"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
)
func TestFindWorkflows_Good(t *testing.T) {

View file

@ -8,7 +8,7 @@ import (
"forge.lthn.ai/core/go-agentic/cmd/workspace"
"forge.lthn.ai/core/cli/pkg/cli"
"forge.lthn.ai/core/go-i18n"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
"forge.lthn.ai/core/go/pkg/repos"
)

View file

@ -9,7 +9,7 @@ import (
"forge.lthn.ai/core/go-agentic/cmd/workspace"
"forge.lthn.ai/core/cli/pkg/cli"
"forge.lthn.ai/core/go-i18n"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
"forge.lthn.ai/core/go/pkg/repos"
)

View file

@ -8,7 +8,7 @@ import (
"forge.lthn.ai/core/cli/pkg/cli"
"forge.lthn.ai/core/go-i18n"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
"forge.lthn.ai/core/go/pkg/repos"
)

View file

@ -20,8 +20,8 @@ import (
"forge.lthn.ai/core/cli/pkg/cli"
"forge.lthn.ai/core/go-i18n"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go/pkg/log"
"forge.lthn.ai/core/go-io"
"forge.lthn.ai/core/go-log"
"forge.lthn.ai/core/go/pkg/repos"
)

View file

@ -15,8 +15,8 @@ import (
"forge.lthn.ai/core/cli/pkg/cli"
"forge.lthn.ai/core/go-i18n"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go/pkg/log"
"forge.lthn.ai/core/go-io"
"forge.lthn.ai/core/go-log"
"forge.lthn.ai/core/go/pkg/repos"
)

View file

@ -18,8 +18,8 @@ import (
"forge.lthn.ai/core/cli/pkg/cli"
"forge.lthn.ai/core/go-i18n"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go/pkg/log"
"forge.lthn.ai/core/go-io"
"forge.lthn.ai/core/go-log"
"forge.lthn.ai/core/go/pkg/repos"
)

View file

@ -17,7 +17,7 @@ import (
"forge.lthn.ai/core/cli/pkg/cli"
"forge.lthn.ai/core/go-i18n"
"forge.lthn.ai/core/go/pkg/log"
"forge.lthn.ai/core/go-log"
)
// Review command flags

View file

@ -18,7 +18,7 @@ import (
"forge.lthn.ai/core/cli/pkg/cli"
"forge.lthn.ai/core/go-i18n"
"forge.lthn.ai/core/go/pkg/log"
"forge.lthn.ai/core/go-log"
)
// Watch command flags

View file

@ -15,7 +15,7 @@ import (
"forge.lthn.ai/core/go-agentic/cmd/workspace"
"forge.lthn.ai/core/go-i18n"
coreio "forge.lthn.ai/core/go/pkg/io"
coreio "forge.lthn.ai/core/go-io"
"forge.lthn.ai/core/go/pkg/repos"
)

View file

@ -7,7 +7,7 @@ import (
"runtime"
"forge.lthn.ai/core/cli/pkg/cli"
coreio "forge.lthn.ai/core/go/pkg/io"
coreio "forge.lthn.ai/core/go-io"
"github.com/spf13/cobra"
"gopkg.in/yaml.v3"
)

View file

@ -24,7 +24,7 @@ import (
"forge.lthn.ai/core/cli/pkg/cli"
"forge.lthn.ai/core/go-i18n"
coreio "forge.lthn.ai/core/go/pkg/io"
coreio "forge.lthn.ai/core/go-io"
"forge.lthn.ai/core/go/pkg/repos"
"github.com/spf13/cobra"
)

View file

@ -16,7 +16,7 @@ import (
"forge.lthn.ai/core/go-agentic/cmd/workspace"
"forge.lthn.ai/core/cli/pkg/cli"
"forge.lthn.ai/core/go-i18n"
coreio "forge.lthn.ai/core/go/pkg/io"
coreio "forge.lthn.ai/core/go-io"
"forge.lthn.ai/core/go/pkg/repos"
)

View file

@ -13,7 +13,7 @@ import (
"strings"
"forge.lthn.ai/core/go-i18n"
coreio "forge.lthn.ai/core/go/pkg/io"
coreio "forge.lthn.ai/core/go-io"
)
// runRepoSetup sets up the current repository with .core/ configuration.

View file

@ -12,7 +12,7 @@ import (
"regexp"
"strings"
coreio "forge.lthn.ai/core/go/pkg/io"
coreio "forge.lthn.ai/core/go-io"
"gopkg.in/yaml.v3"
)

View file

@ -12,7 +12,7 @@ import (
"forge.lthn.ai/core/go-devops/container"
"forge.lthn.ai/core/go-i18n"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
"github.com/spf13/cobra"
)

View file

@ -12,7 +12,7 @@ import (
"forge.lthn.ai/core/go-devops/container"
"forge.lthn.ai/core/go-i18n"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
"github.com/spf13/cobra"
)

View file

@ -10,7 +10,7 @@ import (
"syscall"
"time"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
)
// LinuxKitManager implements the Manager interface for LinuxKit VMs.

View file

@ -8,7 +8,7 @@ import (
"testing"
"time"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -6,7 +6,7 @@ import (
"path/filepath"
"sync"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
)
// State manages persistent container state.

View file

@ -11,7 +11,7 @@ import (
"slices"
"strings"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
)
//go:embed templates/*.yml

View file

@ -9,7 +9,7 @@ import (
"path/filepath"
"sync"
"forge.lthn.ai/core/go/pkg/framework/core"
"forge.lthn.ai/core/go-log"
"github.com/kluctl/go-embed-python/python"
)
@ -41,13 +41,13 @@ func RunScript(ctx context.Context, code string, args ...string) (string, error)
// Write code to temp file
tmpFile, err := os.CreateTemp("", "core-*.py")
if err != nil {
return "", core.E("python", "create temp file", err)
return "", log.E("python", "create temp file", err)
}
defer func() { _ = os.Remove(tmpFile.Name()) }()
if _, err := tmpFile.WriteString(code); err != nil {
_ = tmpFile.Close()
return "", core.E("python", "write script", err)
return "", log.E("python", "write script", err)
}
_ = tmpFile.Close()
@ -57,7 +57,7 @@ func RunScript(ctx context.Context, code string, args ...string) (string, error)
// Get the command
cmd, err := ep.PythonCmd(cmdArgs...)
if err != nil {
return "", core.E("python", "create command", err)
return "", log.E("python", "create command", err)
}
// Run with context
@ -65,9 +65,9 @@ func RunScript(ctx context.Context, code string, args ...string) (string, error)
if err != nil {
// Try to get stderr for better error message
if exitErr, ok := err.(*exec.ExitError); ok {
return "", core.E("python", "run script", fmt.Errorf("%w: %s", err, string(exitErr.Stderr)))
return "", log.E("python", "run script", fmt.Errorf("%w: %s", err, string(exitErr.Stderr)))
}
return "", core.E("python", "run script", err)
return "", log.E("python", "run script", err)
}
return string(output), nil
@ -82,12 +82,12 @@ func RunModule(ctx context.Context, module string, args ...string) (string, erro
cmdArgs := append([]string{"-m", module}, args...)
cmd, err := ep.PythonCmd(cmdArgs...)
if err != nil {
return "", core.E("python", "create command", err)
return "", log.E("python", "create command", err)
}
output, err := cmd.Output()
if err != nil {
return "", core.E("python", fmt.Sprintf("run module %s", module), err)
return "", log.E("python", fmt.Sprintf("run module %s", module), err)
}
return string(output), nil
@ -100,7 +100,7 @@ func DevOpsPath() (string, error) {
}
home, err := os.UserHomeDir()
if err != nil {
return "", core.E("python", "get user home", err)
return "", log.E("python", "get user home", err)
}
return filepath.Join(home, "Code", "DevOps"), nil
}
@ -118,7 +118,7 @@ func CoolifyModulePath() (string, error) {
func CoolifyScript(baseURL, apiToken, operation string, params map[string]any) (string, error) {
paramsJSON, err := json.Marshal(params)
if err != nil {
return "", core.E("python", "marshal params", err)
return "", log.E("python", "marshal params", err)
}
modulePath, err := CoolifyModulePath()

View file

@ -8,7 +8,7 @@ import (
"path/filepath"
"strings"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
)
// ClaudeOptions configures the Claude sandbox session.

View file

@ -5,7 +5,7 @@ import (
"path/filepath"
"forge.lthn.ai/core/go/pkg/config"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
)
// Config holds global devops configuration from ~/.core/config.yaml.

View file

@ -5,7 +5,7 @@ import (
"path/filepath"
"testing"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -11,7 +11,7 @@ import (
"time"
"forge.lthn.ai/core/go-devops/container"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
)
const (

View file

@ -10,7 +10,7 @@ import (
"time"
"forge.lthn.ai/core/go-devops/container"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -10,7 +10,7 @@ import (
"time"
"forge.lthn.ai/core/go-devops/devops/sources"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
)
// ImageManager handles image downloads and updates.

View file

@ -8,7 +8,7 @@ import (
"time"
"forge.lthn.ai/core/go-devops/devops/sources"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -8,7 +8,7 @@ import (
"os/exec"
"path/filepath"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
)
// ServeOptions configures the dev server.

View file

@ -5,7 +5,7 @@ import (
"path/filepath"
"testing"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
"github.com/stretchr/testify/assert"
)

View file

@ -8,7 +8,7 @@ import (
"os"
"path/filepath"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
)
// CDNSource downloads images from a CDN or S3 bucket.

View file

@ -9,7 +9,7 @@ import (
"path/filepath"
"testing"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
"github.com/stretchr/testify/assert"
)

View file

@ -7,7 +7,7 @@ import (
"os/exec"
"strings"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
)
// GitHubSource downloads images from GitHub Releases.

View file

@ -4,7 +4,7 @@ package sources
import (
"context"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
)
// ImageSource defines the interface for downloading dev images.

View file

@ -8,7 +8,7 @@ import (
"path/filepath"
"strings"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
"gopkg.in/yaml.v3"
)

View file

@ -5,7 +5,7 @@ import (
"path/filepath"
"testing"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
)
func TestDetectTestCommand_Good_ComposerJSON(t *testing.T) {

4
go.mod
View file

@ -6,6 +6,9 @@ require (
forge.lthn.ai/core/cli v0.1.0
forge.lthn.ai/core/go v0.1.0
forge.lthn.ai/core/go-agentic v0.1.0
forge.lthn.ai/core/go-i18n v0.1.0
forge.lthn.ai/core/go-io v0.0.1
forge.lthn.ai/core/go-log v0.0.1
forge.lthn.ai/core/go-scm v0.1.0
github.com/Snider/Borg v0.2.0
github.com/getkin/kin-openapi v0.133.0
@ -25,6 +28,7 @@ require (
require (
cloud.google.com/go v0.123.0 // indirect
forge.lthn.ai/core/go-crypt v0.1.0 // indirect
forge.lthn.ai/core/go-inference v0.0.2 // indirect
forge.lthn.ai/core/go-store v0.1.3 // indirect
github.com/ProtonMail/go-crypto v1.3.0 // indirect
github.com/TwiN/go-color v1.4.1 // indirect

8
go.sum
View file

@ -8,6 +8,14 @@ forge.lthn.ai/core/go-agentic v0.1.0 h1:48tZbzJFpbcuUAm50emAzMrZWNITMvKNYGNrsDNW
forge.lthn.ai/core/go-agentic v0.1.0/go.mod h1:6a5D+dt0bShNbYqjNBaMQGBELX0vYkj3gIZ1afMfXFo=
forge.lthn.ai/core/go-crypt v0.1.0 h1:92gwdQi7iAwktpvZhL/8Cu+QS6xKCtGP4FJfyInPGnw=
forge.lthn.ai/core/go-crypt v0.1.0/go.mod h1:zVAgx6ZiGtC+dbX4R/VKvEPqsEqjyuLl4gQZH9SXBUw=
forge.lthn.ai/core/go-i18n v0.1.0 h1:F7JVSoVkZtzx9JfhpntM9z3iQm1vnuMUi/Zklhz8PCI=
forge.lthn.ai/core/go-i18n v0.1.0/go.mod h1:Q4xsrxuNCl/6NfMv1daria7t1RSiyy8ml+6jiPtUcBs=
forge.lthn.ai/core/go-inference v0.0.2 h1:aHjBkYyLKxLr9tbO4AvzzV/lsZueGq/jeo33SLh113k=
forge.lthn.ai/core/go-inference v0.0.2/go.mod h1:jfWz+IJX55wAH98+ic6FEqqGB6/P31CHlg7VY7pxREw=
forge.lthn.ai/core/go-io v0.0.1 h1:N/GCl6Asusfr4gs53JZixJVtqcnerQ6GcxSN8F8iJXY=
forge.lthn.ai/core/go-io v0.0.1/go.mod h1:l+gG/G5TMIOTG8G7y0dg4fh1a7Suy8wCYVwsz4duV7M=
forge.lthn.ai/core/go-log v0.0.1 h1:x/E6EfF9vixzqiLHQOl2KT25HyBcMc9qiBkomqVlpPg=
forge.lthn.ai/core/go-log v0.0.1/go.mod h1:r14MXKOD3LF/sI8XUJQhRk/SZHBE7jAFVuCfgkXoZPw=
forge.lthn.ai/core/go-scm v0.1.0 h1:kpL2aGxhMxsLQoobuNLJbI6uMcsecMOh/8AAmIB9Mjc=
forge.lthn.ai/core/go-scm v0.1.0/go.mod h1:QrSFTqkBS/KgFiNrVngrY8nEwS0u41BjUAu/IEpXiRI=
forge.lthn.ai/core/go-store v0.1.3 h1:CSVTRdsOXm2pl+FCs12fHOc9eM88DcZRY6HghN98w/I=

View file

@ -7,7 +7,7 @@ import (
"os"
"path/filepath"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
"gopkg.in/yaml.v3"
)

View file

@ -14,7 +14,7 @@ import (
"text/template"
"forge.lthn.ai/core/go-devops/build"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
)
//go:embed templates/aur/*.tmpl

View file

@ -6,7 +6,7 @@ import (
"os"
"testing"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -15,7 +15,7 @@ import (
"forge.lthn.ai/core/go-devops/build"
"forge.lthn.ai/core/go-i18n"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
)
//go:embed templates/chocolatey/*.tmpl templates/chocolatey/tools/*.tmpl

View file

@ -6,7 +6,7 @@ import (
"os"
"testing"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

View file

@ -7,7 +7,7 @@ import (
"path/filepath"
"testing"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -9,7 +9,7 @@ import (
"testing"
"forge.lthn.ai/core/go-devops/build"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -14,7 +14,7 @@ import (
"text/template"
"forge.lthn.ai/core/go-devops/build"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
)
//go:embed templates/homebrew/*.tmpl

View file

@ -7,7 +7,7 @@ import (
"testing"
"forge.lthn.ai/core/go-devops/build"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -9,7 +9,7 @@ import (
"testing"
"forge.lthn.ai/core/go-devops/build"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -8,7 +8,7 @@ import (
"path/filepath"
"testing"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -13,7 +13,7 @@ import (
"strings"
"text/template"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
)
//go:embed templates/npm/*.tmpl

View file

@ -6,7 +6,7 @@ import (
"os"
"testing"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

View file

@ -5,7 +5,7 @@ import (
"context"
"forge.lthn.ai/core/go-devops/build"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
)
// Release represents a release to be published.

View file

@ -14,7 +14,7 @@ import (
"text/template"
"forge.lthn.ai/core/go-devops/build"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
)
//go:embed templates/scoop/*.tmpl

View file

@ -6,7 +6,7 @@ import (
"os"
"testing"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

View file

@ -13,7 +13,7 @@ import (
"forge.lthn.ai/core/go-devops/build"
"forge.lthn.ai/core/go-devops/build/builders"
"forge.lthn.ai/core/go-devops/release/publishers"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
)
// Release represents a release with its version, artifacts, and changelog.

View file

@ -8,7 +8,7 @@ import (
"testing"
"forge.lthn.ai/core/go-devops/build"
"forge.lthn.ai/core/go/pkg/io"
"forge.lthn.ai/core/go-io"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -6,7 +6,7 @@ import (
"path/filepath"
"strings"
coreio "forge.lthn.ai/core/go/pkg/io"
coreio "forge.lthn.ai/core/go-io"
)
// commonSpecPaths are checked in order when no spec is configured.

Some files were not shown because too many files have changed in this diff Show more