| 13 | ) |
| 14 | |
| 15 | type RootFS struct { |
| 16 | Url string `toml:"url"` // Download url. |
| 17 | SHA256 string `toml:"sha256"` // SHA256 of the toolchain archive, used for verification and caching. |
| 18 | Archive string `toml:"archive,omitempty"` // Archive can be changed to avoid conflict. |
| 19 | Path string `toml:"path"` // Runtime path of tool, it's relative path and would be converted to absolute path later. |
| 20 | PkgConfigPath []string `toml:"pkg_config_path"` |
| 21 | IncludeDirs []string `toml:"include_dirs"` |
| 22 | LibDirs []string `toml:"lib_dirs"` |
| 23 | |
| 24 | // Internal fields. |
| 25 | ctx context.Context |
| 26 | abspath string |
| 27 | } |
| 28 | |
| 29 | func (r *RootFS) Validate() error { |
| 30 | // Validate rootfs download url. |
nothing calls this directly
no outgoing calls
no test coverage detected