-
Notifications
You must be signed in to change notification settings - Fork 568
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: C0D3 M4513R <[email protected]>
- Loading branch information
1 parent
d700f57
commit 9a83f3f
Showing
3 changed files
with
37 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
package rust | ||
|
||
type CatalogerConfig struct { | ||
//Todo: find a way to replicate cargo's mapping from repository source to their repository dir name | ||
// Todo: find a way to replicate cargo's mapping from repository source to their repository dir name | ||
// When that's done we could enable LocalModCacheDir to point to cargo's cache and read directly from there | ||
//SearchLocalModCacheLicenses bool `yaml:"search-local-mod-cache-licenses" json:"search-local-mod-cache-licenses" mapstructure:"search-local-mod-cache-licenses"` | ||
//LocalModCacheDir string `yaml:"local-mod-cache-dir" json:"local-mod-cache-dir" mapstructure:"local-mod-cache-dir"` | ||
// SearchLocalModCacheLicenses bool `yaml:"search-local-mod-cache-licenses" json:"search-local-mod-cache-licenses" mapstructure:"search-local-mod-cache-licenses"` | ||
// LocalModCacheDir string `yaml:"local-mod-cache-dir" json:"local-mod-cache-dir" mapstructure:"local-mod-cache-dir"` | ||
SearchRemote bool `yaml:"search-remote" json:"search-remote" mapstructure:"search-remote"` | ||
} | ||
|
||
func DefaultCatalogerConfig() CatalogerConfig { | ||
return CatalogerConfig{ | ||
//SearchLocalModCacheLicenses: true, | ||
//LocalModCacheDir: "~/.cargo/registry", | ||
// SearchLocalModCacheLicenses: true, | ||
// LocalModCacheDir: "~/.cargo/registry", | ||
SearchRemote: true, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters