txt: ## resolve.md
  resolve
  
  Combined from primary sources listed below.
  
  # [In CompUnit::Repository::Installation](#___top "go to top of document")[§](#(CompUnit::Repository::Installation)_method_resolve "direct link")
  
  See primary documentation
  [in context](/type/CompUnit/Repository/Installation#method_resolve)
  for **method resolve**.
  
  ```raku
  method resolve(CompUnit::DependencySpecification $spec --> CompUnit:D)
  ```
  
  Returns a [`CompUnit`](/type/CompUnit) mapped to the highest version distribution matching `$spec` from the first repository in the repository chain that contains any version of a distribution matching `$spec`.
  
  # [In IO::Path](#___top "go to top of document")[§](#(IO::Path)_method_resolve "direct link")
  
  See primary documentation
  [in context](/type/IO/Path#method_resolve)
  for **method resolve**.
  
  ```raku
  method resolve(IO::Path:D: :$completely --> IO::Path)
  ```
  
  Returns a new `IO::Path` object with all symbolic links and references to the parent directory (`..`) resolved. This means that the filesystem is examined for each directory in the path, and any symlinks found are followed.
  
  ```raku
  # bar is a symlink pointing to "/baz"
  my $io = "foo/./bar/..".IO.resolve;      # now "/" (the parent of "/baz")
  ```
  
  If `:$completely`, which defaults to `False`, is set to a true value, the method will [`fail`](/routine/fail) with `X::IO::Resolve` if it cannot completely resolve the path, otherwise, it will resolve as much as possible, and will merely perform [`cleanup`](/routine/cleanup) of the rest of the path. The last part of the path does **NOT** have to exist to `:$completely` resolve the path.
  
  NOTE: Currently (April 2017) this method doesn't work correctly on all platforms, e.g. Windows, since `resolve` assumes POSIX semantics.
  
  # [In role CompUnit::Repository](#___top "go to top of document")[§](#(role_CompUnit::Repository)_method_resolve "direct link")
  
  See primary documentation
  [in context](/type/CompUnit/Repository#method_resolve)
  for **method resolve**.
  
  ```raku
  method resolve(CompUnit::DependencySpecification $spec --> CompUnit:D)
  ```
  
  Returns a [`CompUnit`](/type/CompUnit) mapped to the highest version distribution matching `$spec` from the first repository in the repository chain that contains any version of a distribution matching `$spec`.
  
  # [In CompUnit::Repository::FileSystem](#___top "go to top of document")[§](#(CompUnit::Repository::FileSystem)_method_resolve "direct link")
  
  See primary documentation
  [in context](/type/CompUnit/Repository/FileSystem#method_resolve)
  for **method resolve**.
  
  ```raku
  method resolve(CompUnit::DependencySpecification $spec --> CompUnit:D)
  ```
  
  Returns a [`CompUnit`](/type/CompUnit) mapped to the highest version distribution matching `$spec` from the first repository in the repository chain that contains any version of a distribution matching `$spec`.
  