summaryrefslogtreecommitdiff
path: root/src/rebar_fetch.erl
Commit message (Collapse)AuthorAgeFilesLines
* Work around OTP-21 deprecation of get_stacktrace()Fred Hebert2018-05-031-2/+2
| | | | Based off a macro by @okeuday at https://github.com/erlang/otp/pull/1783
* Unicode support in all the placesFred Hebert2017-08-061-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is done through 3 main change groups: - replacing `~s` by `~ts` in format strings, so that strings that contain unicode are properly printed rather than crashing - adding the `unicode` argument to all function of the `re` module to ensure transformations on strings containing unicode data are valid instead of crashing (see issue #1302) - replacing `ec_cnv:to_binary/1` and `ec_cnv:to_list/1` with matching functions in `rebar_utils`. The last point has been done, rather than modifying and updating erlware commons, because binary and list conversions can be a contentious subject. For example, if what is being handled is actually bytes from a given binary stream, then forcing a byte-oriented interpretation of the data can corrupt it. As such, it does not appear safe to modify erlware commons' conversion functions since it may not be safe for all its users. Instead, rebar3 reimplements a subset of them (only converting atoms and chardata, ignoring numbers) with the explicit purpose of handling unicode string data. Tests were left as unchanged as possible. This may impact the ability to run rebar3's own suites in a unicode path, but respects a principle of least change for such a large patch.
* Use rm_rf instead of ec_file:delete.Benedikt Reinartz2017-05-171-1/+1
| | | | | | In contrast to `ec_file:delete`, `rebar_file_utils:rm_rf` will also delete write-protected files on Windows which is needed for git object files. Fixes #1483.
* Validate checksums expected vs obtainedFred Hebert2016-05-241-0/+6
|
* improve error messages for packages by checking its existance before fetchingTristan Sloughter2015-08-231-0/+2
|
* io_lib:format/2 will throw badarg when trying to print ↵Stefan Grundmann2015-05-191-1/+1
| | | | rebar_resource:resource() as string
* add bad_download errorTristan Sloughter2015-05-121-0/+2
|
* wrap fetch errors in rebar_fetch PRV_ERRORTristan Sloughter2015-05-121-3/+5
|
* throw errors returned by resource:download/3Tristan Sloughter2015-05-121-12/+22
|
* Ad-hoc attempt at restructuring pkg cacheFred Hebert2015-05-121-44/+7
|
* check md5sum of package against that sent by s3Tristan Sloughter2015-05-121-0/+4
|
* verify checksums of hex packagesTristan Sloughter2015-05-121-11/+37
|
* store hex package downloads in shared cache dirTristan Sloughter2015-05-121-10/+5
|
* move resource modules list to rebar_state, no longer staticTristan Sloughter2015-04-041-22/+21
|
* use rebar_file_utils:mv instead of copy for fetched sourceTristan Sloughter2015-03-031-2/+8
|
* Support mercurial (hg) dependenciesFred Hebert2015-02-251-1/+2
|
* replace package management with hex.pmTristan Sloughter2015-02-171-12/+15
|
* Change mock_pkg_resource to create ebin directoryKelly McLaughlin2015-02-061-6/+1
| | | | | | | | | Change mock_pkg_resource to use rebar_test_utils:create_empty_app so that an ebin directory is created which is a good expectation for a package. Also revert the check in rebar_fetch:download_source to check for an ebin directory before adding it to the code path for package installs. If a package does not have an ebin directory it is probably a good for an exception to be thrown.
* Ensure package ebin directory exists prior to adding to code pathKelly McLaughlin2015-02-061-1/+6
|
* Add packages to code path after installationKelly McLaughlin2015-02-061-0/+1
| | | | | | | | Fix a bug where packages are not added to the code path after installation. Dependent applications that build from source are not affected by this issue since the build_apps function in rebar_prv_compiler takes care of the code path changes for them. It is only the precompiled packages that suffer from this issue.
* print error message for failed fetchTristan Sloughter2014-12-051-2/+7
|
* only create the apps dir after successful fetchTristan Sloughter2014-12-051-1/+2
|
* fixes for dialyzer findingsTristan Sloughter2014-11-301-19/+24
|
* fix lock provider to work anytime it is runTristan Sloughter2014-11-291-39/+27
|
* support branch/tag/ref-less git depsTristan Sloughter2014-11-051-0/+2
|
* install test deps to separate directoryTristan Sloughter2014-11-041-1/+6
|
* add pkg resourceTristan Sloughter2014-11-021-3/+8
|
* verify checked out dep is the same as specified in the config and update if notTristan Sloughter2014-11-011-3/+17
|
* dynamicly find module for fullfilling dependencyTristan Sloughter2014-11-011-13/+47
|
* create rebar_resource behaviour and create git resourceTristan Sloughter2014-10-301-237/+6
|
* getting closerTristan Sloughter2014-09-261-4/+6
|
* move locking to a providerTristan Sloughter2014-09-021-8/+10
|
* remove more code that can be brought back later if neededTristan Sloughter2014-08-301-3/+4
|
* update package index url and README list of tasksTristan Sloughter2014-08-271-1/+1
|
* fix up tarball extraction path and parse goal constraintsTristan Sloughter2014-08-251-6/+11
|
* improved dep handling and add package list taskTristan Sloughter2014-08-241-60/+58
|
* refactoring and remove unused providers for nowTristan Sloughter2014-08-231-1/+8
|
* large refactoringTristan Sloughter2014-08-161-0/+247
Removed separate compilers Resolves apps to build Finds avail deps before pulling/building Includes relx Simplifies build commands