diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-07-02 22:59:40 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-07-02 23:21:31 +0900 |
| commit | dde69dde61e57fa929596294f6b4e8f798f5598e (patch) | |
| tree | da95820f75371a14da57d934cfd5c0ce1f105bef /internal/pkg/exec.go | |
| parent | 3ba6609444978907fe047007f5218271ba97a153 (diff) | |
internal/pkg: rename inputs method
Inputs is more correct than dependencies in the current terminology.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pkg/exec.go')
| -rw-r--r-- | internal/pkg/exec.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/pkg/exec.go b/internal/pkg/exec.go index 4dd9fc26..3623c927 100644 --- a/internal/pkg/exec.go +++ b/internal/pkg/exec.go @@ -407,9 +407,9 @@ func init() { func(r *IRReader) Artifact { return readExecArtifact(r, true) }) } -// Dependencies returns a slice of all artifacts collected from caller-supplied +// Inputs returns a slice of all artifacts collected from caller-supplied // [ExecPath]. -func (a *execArtifact) Dependencies() []Artifact { +func (a *execArtifact) Inputs() []Artifact { artifacts := make([][]Artifact, 0, len(a.paths)) for _, p := range a.paths { artifacts = append(artifacts, p.A) @@ -617,7 +617,7 @@ func (c *Cache) EnterExec( return ErrNotExec } - deps := Collect(a.Dependencies()) + deps := Collect(a.Inputs()) if _, _, err = c.Cure(&deps); err == nil { return errors.New("unreachable") } else if !IsCollected(err) { |
