summaryrefslogtreecommitdiff
path: root/src/rebar_prv_update.erl
Commit message (Collapse)AuthorAgeFilesLines
* Fix rebar3 dialyzer warningsFred Hebert2016-11-191-1/+1
| | | | Some tricky changes in there but should be okay
* Track package hash in memory index, add hash testFred Hebert2016-10-041-1/+17
| | | | | | | | | | This adds tracking of package hash in the in-memory index rather than the current `undefined' values. According to the test added, this is not necessary for transitive package dep hash chcking, but does result in a more complete index search result when doing app lookups, and could yield some optimizations on hash checks by checking from the index structure before fetching a package.
* Properly support package aliasing and alt namesFred Hebert2016-09-271-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Aliasing only had a bit of ad-hoc support in rebar3, and various issues have encountered problems related to the package names not mapping properly with the application name. One such issue is https://github.com/erlang/rebar3/issues/1290 The problem has been hard to find because it only impacts transitive dependencies (not top-level ones) of other packages. The root cause for this is that the application name was not being tracked by rebar3's internal index, only the package name and its version were. When a given application was a package app, the data for the application name would be reconstructed from the lock file, but only if it were a top-level app or a dependency of a source application where parsing the lock file is necessary to know what comes next. When a transitive dependency of a package dependency was fetched, we instead read its dependencies directly from the in-memory package index within rebar3. This caused us to only read the package name and version, and lost all information regarding application name. This worked fine for most cases since for the vast majority of packages, the package name matches the app name, but failed for all aliases, which would then be moved to directories that wouldn't match the app name. This in turn broke some aspects of code analysis (in Dialyzer), or other functionality relying on static paths, such as including .hrl files from dependencies. This patch reformats the internal storage format of dependencies to align with the internal one used by rebar3, so that the app name can be carried along with the package name and its version. The fix can only work once `rebar3 update` is called so the index is rebuilt internally, and will the file cached on disk will be incompatible with older rebar3 versions. Currently, the following is not covered: - Tests - Including the package hashes of dependencies so they may match what is in a lock file -- they're being `undefined` instead, which may break some lookups. The previous format did not lend itself to hashing in the same way, and it is possible transitive deps were not being tracked properly, or worked by respecting the current package hierarchy. This will require further analysis For now this commit can allow reviewing and discussion.
* filter available package versions individually by buildtoolsTristan Sloughter2016-05-221-6/+6
|
* Add more hex rules so they don't throw errorsHeinz N. Gies2016-02-221-12/+110
| | | | | | | | | | Add more version constraints Allow for any number of whitespaces after compairison opperator Improve updating and error printing Fix failing tests
* add user-agent to http request headersTristan Sloughter2016-02-011-1/+1
|
* support temporary cdn change with HEX_CDN os varTristan Sloughter2015-12-191-20/+32
|
* only add package list of versions to registry if it has the right buildtool ↵Tristan Sloughter2015-11-171-2/+14
| | | | support
* return more useful error message (failed to download) when pkg http req failsTristan Sloughter2015-10-261-12/+16
|
* remove replacement of home dir with ~ in update outputTristan Sloughter2015-08-261-2/+2
|
* Merge pull request #742 from tsloughter/pkg_checkTristan Sloughter2015-08-231-0/+1
|\ | | | | improve error messages for packages by checking its existance before fetch
| * improve error messages for packages by checking its existance before fetchingTristan Sloughter2015-08-231-0/+1
| |
* | use 'default' for default hex repo path in cache and include in info messagesTristan Sloughter2015-08-221-5/+8
|/
* replace use of dict of packages and registry with single ets tableTristan Sloughter2015-08-211-51/+44
|
* include rebar3 in supported packages buildtoolTristan Sloughter2015-08-211-0/+1
|
* fix leaking ets tables caused by digraphspvmart2015-08-171-0/+1
|
* fix no_return warningsTristan Sloughter2015-08-081-1/+6
|
* fix dialyzer warnings, except 'no local return' warningsTristan Sloughter2015-08-081-0/+5
|
* Added rebar profile to httpc initialization and calls.CarlosEDP2015-07-031-1/+2
|
* fix bareness issuesFred Hebert2015-05-311-1/+1
| | | | | | - Crashes in providers lib when no providers in a namespace are bare - Making sure bareness matches semantics; i.e. a bare provider is visible, a non-bare provider is hidden.
* Proper custom pkg index support, some testsFred Hebert2015-05-131-4/+2
| | | | | | | | | | - The rebar package index files have been moved off the default path and will require a new `rebar3 update` - Caching of downloaded packages automatically takes place in a path relative to the CDN used - The cache path is not shared with hex as we now write and modify data in there arbitrarily - Basic tests plus the working set for more of them is included
* ignore pkgs that can't build with rebar or makeTristan Sloughter2015-05-081-3/+12
|
* handle missing package in registry by skippingTristan Sloughter2015-05-041-4/+9
|
* ignore optional deps for nowTristan Sloughter2015-04-181-2/+4
|
* support single atoms for pkg deps, fetch highest version availableTristan Sloughter2015-04-111-41/+7
|
* Provide descriptions for all tasksFred Hebert2015-04-041-1/+1
|
* add back throw on package index writeTristan Sloughter2015-03-161-1/+1
|
* use PRV_ERROR for formattable errorsFred Hebert2015-03-161-1/+2
| | | | Also expose it in rebar_api
* update all examples in providers to use rebar3Tristan Sloughter2015-03-071-1/+1
|
* Revert accidental commited debug codeFred Hebert2015-02-241-2/+1
|
* Reuse test code and drop duplicated stuffFred Hebert2015-02-231-1/+1
|
* follow xdg standard. fixes #122Tristan Sloughter2015-02-191-1/+1
|
* parse version constraints in hex registry for digraphTristan Sloughter2015-02-171-10/+52
|
* replace package management with hex.pmTristan Sloughter2015-02-171-15/+49
|
* move dir functions from utils to new module rebar_dirTristan Sloughter2014-12-011-1/+1
|
* new dep graph workingTristan Sloughter2014-11-221-2/+2
|
* update package index fetchingTristan Sloughter2014-11-151-7/+2
|
* write packages file to tmp so a lost connection doesn't mean corruptionTristan Sloughter2014-11-151-2/+5
|
* use CONFIG_DIR of rebar3 for config directoriesTristan Sloughter2014-11-101-2/+2
|
* move back to using format_error/1Tristan Sloughter2014-11-091-4/+4
|
* update package update providerTristan Sloughter2014-11-081-7/+8
|
* add format_error/2 provider callback to providersTristan Sloughter2014-10-221-1/+6
|
* fix update provider do/1 returnTristan Sloughter2014-10-171-3/+4
|
* move providers to separate appTristan Sloughter2014-10-031-9/+9
|
* fix for downloading transitive source depsTristan Sloughter2014-09-281-27/+12
|
* erorr message on failed package updateTristan Sloughter2014-09-271-17/+12
|
* return error messages from providersTristan Sloughter2014-09-271-7/+11
|
* update src dep works except for removed transitive depsTristan Sloughter2014-09-261-5/+7
|
* slowly widdling away at dialyzer errorsTristan Sloughter2014-09-201-2/+2
|
* wip: update depTristan Sloughter2014-09-201-1/+1
|