| 52 | } |
| 53 | |
| 54 | type Port struct { |
| 55 | Package Package `toml:"package"` |
| 56 | BuildConfigs []buildsystems.BuildConfig `toml:"build_configs"` |
| 57 | |
| 58 | // Internal fields. |
| 59 | Name string `toml:"-"` |
| 60 | Version string `toml:"-"` |
| 61 | Parent string `toml:"-"` |
| 62 | DevDep bool `toml:"-"` // Whether the port is a dev_dependences. |
| 63 | HostDep bool `toml:"-"` // Whether the port is a dependencies of a dev_dependencies. |
| 64 | MatchedConfig *buildsystems.BuildConfig `toml:"-"` |
| 65 | PackageDir string `toml:"-"` |
| 66 | InstalledDir string `toml:"-"` |
| 67 | |
| 68 | ctx context.Context |
| 69 | portFile string |
| 70 | traceFile string |
| 71 | metaFile string |
| 72 | tmpDepsDir string |
| 73 | installReport *installReport |
| 74 | exprVars context.ExprVars |
| 75 | sourceModified bool |
| 76 | pkgCacheStoreSkippedReason string |
| 77 | } |
| 78 | |
| 79 | func (p Port) NameVersion() string { |
| 80 | return p.Name + "@" + p.Version |
nothing calls this directly
no outgoing calls
no test coverage detected