Skip to content

Commit

Permalink
preparation for actual sources computation
Browse files Browse the repository at this point in the history
  • Loading branch information
d-led committed Dec 31, 2023
1 parent 7488e12 commit 9b4b1b1
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions common/nix_candidate_source.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
package common

import "runtime"

type NixCandidateSource struct {
fs Filesystem
fs Filesystem
sources map[string]*PathSetIn
}

func NewNixCandidateSource(fs Filesystem) CandidateSource {
return &NixCandidateSource{fs}
return &NixCandidateSource{
fs,
map[string]*PathSetIn{},
}
}

func (s *NixCandidateSource) WhereSet(somePath string) *PathSetIn {
return nil
if runtime.GOOS == "windows" {
return nil
}
normalizedPath := s.fs.GetAbsolutePath(somePath)
return s.sources[normalizedPath]
}

0 comments on commit 9b4b1b1

Please sign in to comment.