Essential fact.sh functions git_lasthash() and semver() have been updated so that they explicitly depend on git or fail, ie. forget about the cache. Previously git_lasthash() would try to use cache or fail, while semver() would try to use cache or rely on mkit.ini, which in turn had to be hacked by dist() in order to make git-less targets expand version correctly (with build data, eg. `0.1.2+ge1f4a77.dirty`). The old code was guilty of four sins: inconsistency (git_lasthash() vs. semver()), side effects (semver() would actually write cache), hidden dependencies (both actually relied on functions from mkit.sh) and unnecessary complexity (speculative $version use in semver()). New code remediates all of these by making both functions just do their job (ie. get data from VCS). Places that did benefit from the silent caching are served by __cached() function created for this purpose.
|
|
||
59 |
|
59 |
|
60 |
|
60 |
|
61 |
|
61 |
|
62 |
|
|
|
63 |
|
|
|
|
62 |
|
|
|
63 |
|
|
64 |
|
64 |
|
65 |
|
65 |
|
66 |
|
66 |
|
|
|
||
87 |
|
87 |
|
88 |
|
88 |
|
89 |
|
89 |
|
|
90 |
|
|
|
91 |
|
|
|
92 |
|
|
|
93 |
|
|
|
94 |
|
|
|
95 |
|
|
|
96 |
|
|
|
97 |
|
|
|
98 |
|
|
|
99 |
|
|
|
100 |
|
|
|
101 |
|
|
|
102 |
|
|
|
103 |
|
|
|
104 |
|
|
|
105 |
|
|
|
106 |
|
|
|
107 |
|
|
90 |
|
108 |
|
91 |
|
109 |
|
92 |
|
110 |
|
|
|
||
125 |
|
143 |
|
126 |
|
144 |
|
127 |
|
145 |
|
128 |
|
|
|
129 |
|
146 |
|
130 |
|
147 |
|
131 |
|
148 |
|
|
|
||
153 |
|
170 |
|
154 |
|
171 |
|
155 |
|
172 |
|
156 |
|
|
|
|
173 |
|
|
157 |
|
174 |
|
158 |
|
175 |
|
159 |
|
176 |
|
|
|
||
192 |
|
209 |
|
193 |
|
210 |
|
194 |
|
211 |
|
195 |
|
|
|
196 |
|
212 |
|
|
213 |
|
|
197 |
|
214 |
|
198 |
|
215 |
|
199 |
|
216 |
|
|
|
||
85 |
|
85 |
|
86 |
|
86 |
|
87 |
|
87 |
|
88 |
|
|
|
89 |
|
|
|
90 |
|
|
|
91 |
|
|
|
|
88 |
|
|
|
89 |
|
|
|
90 |
|
|
92 |
|
91 |
|
93 |
|
92 |
|
94 |
|
|
|
95 |
|
|
|
96 |
|
|
|
97 |
|
|
|
98 |
|
|
|
99 |
|
|
|
100 |
|
|
|
101 |
|
|
|
102 |
|
|
|
103 |
|
|
|
|
93 |
|
|
|
94 |
|
|
|
95 |
|
|
|
96 |
|
|
|
97 |
|
|
|
98 |
|
|
|
99 |
|
|
|
100 |
|
|
104 |
|
101 |
|
105 |
|
102 |
|
106 |
|
103 |
|
|
|
||
110 |
|
107 |
|
111 |
|
108 |
|
112 |
|
109 |
|
113 |
|
|
|
114 |
|
|
|
115 |
|
|
|
|
110 |
|
|
|
111 |
|
|
|
112 |
|
|
116 |
|
113 |
|
117 |
|
|
|
|
114 |
|
|
118 |
|
115 |
|
119 |
|
|
|
|
116 |
|
|
120 |
|
117 |
|
121 |
|
118 |
|
122 |
|
119 |
|
|
|
||
148 |
|
145 |
|
149 |
|
146 |
|
150 |
|
147 |
|
151 |
|
|
|
|
148 |
|
|
152 |
|
149 |
|
153 |
|
150 |
|
154 |
|
151 |
|
155 |
|
152 |
|
156 |
|
153 |
|
157 |
|
|
|
158 |
|
|
|
159 |
|
154 |
|
160 |
|
155 |
|
161 |
|
156 |
|
162 |
|
|
|
163 |
|
|
|
164 |
|
|
|
165 |
|
|
|
166 |
|
|
|
167 |
|
|
|
168 |
|
|
|
169 |
|
|
|
170 |
|
|
|
171 |
|
|
|
172 |
|
|
|
173 |
|
|
|
174 |
|
|
|
175 |
|
|
|
176 |
|
|
|
177 |
|
|
|
178 |
|
|
|
179 |
|
|
|
180 |
|
|
|
|
157 |
|
|
|
158 |
|
|
|
159 |
|
|
|
160 |
|
|
|
161 |
|
|
|
162 |
|
|
|
163 |
|
|
|
164 |
|
|
|
165 |
|
|
|
166 |
|
|
|
167 |
|
|
|
168 |
|
|
|
169 |
|
|
|
170 |
|
|
|
171 |
|
|
|
172 |
|
|
181 |
|
173 |
|
182 |
|
|
|
183 |
|
|
|
|
174 |
|
|
|
175 |
|
|
|
176 |
|
|
|
177 |
|
|
|
178 |
|
|
|
179 |
|
|
|
180 |
|
|
|
181 |
|
|
|
182 |
|
|
|
183 |
|
|
|
184 |
|
|
184 |
|
185 |
|