anchor.diff:      end.
   
   set_resolved(State, Release0, Pkgs) ->
  -
       case rlx_release:realize(Release0, Pkgs, rlx_state:available_apps(State)) of
           {ok, Release1} ->
               ec_cmd_log:info(rlx_state:log(State),
  
positive.code: -spec format_error(ErrorDetail::term()) -> iolist().
  format_error(no_goals_specified) ->
      "No goals specified for this release ~n";
  format_error({no_release_name, Vsn}) ->
      io_lib:format("A target release version was specified (~s) but no name", [Vsn]);
  format_error({invalid_release_info, Info}) ->
  
negative.code:                              fun() ->
                                       rlx_release:format(0, Release1)
                               end),
              case rlx_state:get(State, include_erts, undefined) of
                  IncludeErts when is_atom(IncludeErts) ->
                      {ok, rlx_state:add_realized_release(State, Release1)};
                  ErtsDir ->
                      try
                          [Erts | _] = filelib:wildcard(filename:join(ErtsDir, "erts-*")),
                          [_, ErtsVsn] = string:tokens(filename:basename(Erts), "-"),
                          {ok, rlx_state:add_realized_release(State, rlx_release:erts(Release1, ErtsVsn))}
                      catch
                          _:_ ->
                              ?RLX_ERROR({release_erts_error, ErtsDir})
                      end
              end;
          {error, E} ->
              ?RLX_ERROR({release_error, E})
      end.
  