Skip to content

Commit 524ef2e

Browse files
committed
Merge remote-tracking branch 'alire/release/2.0'
2 parents 398f98c + fee90da commit 524ef2e

File tree

3 files changed

+34
-1
lines changed

3 files changed

+34
-1
lines changed

RELEASING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
## Checklist for releasing a new version
22

3+
1. [ ] Update version in `Alire.Version`.
34
1. [ ] Create test release in own fork.
45
- To verify builds succeed.
56
- As the Windows build can rarely fail, this provides a backup .exe

doc/user-changes.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,37 @@ automatic updates.
4949
When enabled, updates may happen before executing commands that rely on
5050
indexes: `get`, `search`, `with`, etc.
5151

52+
### Enable shared dependencies by default
53+
54+
PR [#1449](https://github.com/alire-project/alire/pull/1449)
55+
56+
Pre-2.0, Alire worked always in "sandboxed" mode; that is, all source
57+
dependencies were found under `<workspace>/alire/cache`. This behavior can be
58+
now enabled with `alr config --set dependencies.shared false`, locally or
59+
globally.
60+
61+
By default, post-2.0, Alire works in "shared" mode, where sources are
62+
downloaded once (to `~/.cache/alire/releases`) and unique builds are created
63+
(under `~/.cache/alire/builds`) for unique configurations. This should minimize
64+
rebuilds across crate configurations and workspaces, and eliminate risks of
65+
inconsistencies.
66+
67+
Disk use is decreased by unique source downloads, but might be increased by
68+
unique build configurations. Cache management and cleanup will be provided down
69+
the road. The build cache can always be deleted to retrieve disk space, at the
70+
cost of triggering rebuilds.
71+
72+
Unique builds are identified by a build hash which takes into account the
73+
following inputs for a given release:
74+
75+
- Build profile
76+
- Environment variables modified in the manifest
77+
- GPR external variables declared or set
78+
- Configuration variables declared or set
79+
- Compiler version
80+
- Vaue of `LIBRARY_TYPE` and `<CRATE>_LIBRARY_TYPE` variables.
81+
- Hash of dependencies
82+
5283
### Deprecation of `dependencies.dir` in favor of `dependencies.shared`
5384

5485
PR [#1419](https://github.com/alire-project/alire/pull/1419)

src/alire/alire-version.ads

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ package Alire.Version with Preelaborate is
22

33
-- Remember to update Alire.Index branch if needed too
44

5-
Current : constant String := "2.0-dev";
5+
Current : constant String := "2.0-beta1";
6+
-- 2.0.0-b1: first public release on the 2.0 branch
67
-- 1.2.1: build switches fix and other minor assorted fixes
78
-- 1.2.0: rpm speed-up, silence propagation warning, early switch parse
89
-- 1.2.0-rc1: release candidate for 1.2

0 commit comments

Comments
 (0)