Files
lpm/state/source_info.go
zeekay 7d7127a687 deps: update to latest luxfi packages
- Update node v1.16.15 → v1.19.8
- Update crypto v1.17.0 → v1.17.4
- Update database v1.2.0 → v1.2.1
- Update geth v1.16.34 → v1.16.35
- Update ids v1.1.0 → v1.1.1
- Update Go 1.25 → 1.25.1
- Update copyright year to 2025
2025-09-30 00:05:18 +00:00

30 lines
777 B
Go

// Copyright (C) 2019-2025, Lux Partners Limited. All rights reserved.
// See the file LICENSE for licensing terms.
package state
import (
"github.com/go-git/go-git/v5/plumbing"
"github.com/luxfi/lpm/types"
)
// SourceInfo represents a repository, its source, and the last synced commit.
type SourceInfo struct {
URL string `yaml:"url"`
Commit string `yaml:"commit"`
Branch plumbing.ReferenceName `yaml:"branch"`
}
type InstallInfo struct {
ID string `yaml:"id"`
Commit string `yaml:"commit"`
}
// Definition stores a plugin definition alongside the plugin-repository's commit
// it was downloaded from.
type Definition[T types.Definition] struct {
Definition T `yaml:"definition"`
Commit string `yaml:"commit"`
}