git-semver-tagger 1.9.26 → 1.9.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -174,6 +174,79 @@ if [ "$STATUS" = "error" ]; then
174
174
  fi
175
175
  ```
176
176
 
177
+ ## Common Errors and Troubleshooting
178
+
179
+ ### Lightweight Tags
180
+
181
+ **Error:** `found N tag(s) (...) but it is/they are lightweight.`
182
+
183
+ **Cause:** Tagger requires annotated tags (created with `git tag -a`) because they store metadata like tagger name, email, and timestamp. Lightweight tags (created with `git tag <name>`) don't include this information.
184
+
185
+ **Solution:** Recreate the tag(s) as annotated tags. The error message will provide exact commands, for example:
186
+
187
+ ```bash
188
+ git tag -d 1.0.0
189
+ git tag -a 1.0.0 <sha> -m "1.0.0"
190
+ git push --force origin 1.0.0
191
+ ```
192
+
193
+ Replace `<sha>` with the commit hash where the tag should point (often the same commit the lightweight tag pointed to).
194
+
195
+ ### Permission Errors When Pushing Tags
196
+
197
+ **Error:** `Command failed: git push --tags (exit code 128)` or `exit code 403`
198
+
199
+ **Common causes:**
200
+ - The account running tagger doesn't have push permission on the repository
201
+ - CI/CD pipelines often use restricted service accounts by default
202
+
203
+ **Solutions:**
204
+
205
+ **For Azure DevOps:**
206
+ 1. Go to Project Settings → Repositories → Security
207
+ 2. Find the Build Service identity (e.g., `<Project Name> Build Service`)
208
+ 3. Grant both `Contribute` and `Create tag` permissions
209
+ 4. Ensure "Allow scripts to access the OAuth token" is enabled in your pipeline YAML:
210
+ ```yaml
211
+ - checkout: self
212
+ persistCredentials: true
213
+ ```
214
+
215
+ **For GitHub Actions:**
216
+ 1. Add write permissions to your workflow job:
217
+ ```yaml
218
+ jobs:
219
+ build:
220
+ permissions:
221
+ contents: write # Required for pushing tags
222
+ ```
223
+ 2. Ensure you're not using a read-only `GITHUB_TOKEN`
224
+
225
+ **For GitLab CI:**
226
+ ```yaml
227
+ variables:
228
+ GIT_STRATEGY: clone
229
+
230
+ before_script:
231
+ - git config --global user.email "ci@example.com"
232
+ - git config --global user.name "CI Bot"
233
+ ```
234
+
235
+ ### No Tags Exist
236
+
237
+ **Error:** `repository has no tags.`
238
+
239
+ **Cause:** This is a new repository or no tags have been created yet.
240
+
241
+ **Solution:** Create an initial tag manually to establish the version baseline:
242
+
243
+ ```bash
244
+ git tag -a 0.1.0 -m "Initial version"
245
+ git push origin 0.1.0
246
+ ```
247
+
248
+ After this, tagger can calculate subsequent versions automatically.
249
+
177
250
  ### Help
178
251
 
179
252
  For a full listing of the available options in the program, please use the built-in help command.
@@ -23,12 +23,12 @@
23
23
  var withPadding = kotlin_mordant_mordant.$_$.d;
24
24
  var collectionSizeOrDefault = kotlin_kotlin.$_$.t4;
25
25
  var ArrayList_init_$Create$ = kotlin_kotlin.$_$.y;
26
- var ensureNotNull = kotlin_kotlin.$_$.re;
26
+ var ensureNotNull = kotlin_kotlin.$_$.te;
27
27
  var drop = kotlin_kotlin.$_$.rb;
28
- var plus = kotlin_kotlin.$_$.ye;
28
+ var plus = kotlin_kotlin.$_$.af;
29
29
  var Whitespace_PRE_WRAP_getInstance = kotlin_mordant_mordant.$_$.g;
30
30
  var isBlank = kotlin_kotlin.$_$.yb;
31
- var replace = kotlin_kotlin.$_$.ic;
31
+ var replace = kotlin_kotlin.$_$.kc;
32
32
  //endregion
33
33
  //region block: pre-declaration
34
34
  initMetadataForClass(CliktCommand, 'CliktCommand', VOID, CoreCliktCommand);
@@ -41,7 +41,7 @@
41
41
  }
42
42
  function installMordant(_this__u8e3s4, force) {
43
43
  force = force === VOID ? false : force;
44
- _this__u8e3s4.z1b(installMordant$lambda(force));
44
+ _this__u8e3s4.g1c(installMordant$lambda(force));
45
45
  }
46
46
  function get_terminal(_this__u8e3s4) {
47
47
  // Inline function 'com.github.ajalt.clikt.core.Context.findObject' call
@@ -52,7 +52,7 @@
52
52
  if (tmp0_elvis_lhs == null) {
53
53
  // Inline function 'kotlin.also' call
54
54
  var this_0 = Terminal_init_$Create$();
55
- var tmp0 = last(selfAndAncestors(_this__u8e3s4)).x19_1;
55
+ var tmp0 = last(selfAndAncestors(_this__u8e3s4)).e1a_1;
56
56
  // Inline function 'kotlin.collections.set' call
57
57
  var key_0 = 'mordant_terminal';
58
58
  tmp0.p2(key_0, this_0);
@@ -66,10 +66,10 @@
66
66
  return new MordantHelpFormatter(it);
67
67
  }
68
68
  function installMordant$lambda$lambda_0(it) {
69
- return MultiplatformSystem_instance.l1y(it);
69
+ return MultiplatformSystem_instance.s1y(it);
70
70
  }
71
71
  function installMordant$lambda$lambda_1(it) {
72
- var tmp0_elvis_lhs = MultiplatformSystem_instance.n1y(it);
72
+ var tmp0_elvis_lhs = MultiplatformSystem_instance.u1y(it);
73
73
  var tmp;
74
74
  if (tmp0_elvis_lhs == null) {
75
75
  throw new FileNotFound(it);
@@ -79,91 +79,91 @@
79
79
  return tmp;
80
80
  }
81
81
  function installMordant$lambda$lambda_2(it) {
82
- MultiplatformSystem_instance.m1y(it);
82
+ MultiplatformSystem_instance.t1y(it);
83
83
  return Unit_instance;
84
84
  }
85
85
  function installMordant$lambda$lambda_3(context, message, trailingNewline, err) {
86
86
  if (trailingNewline) {
87
- get_terminal(context).l28(message, VOID, VOID, VOID, VOID, err);
87
+ get_terminal(context).s28(message, VOID, VOID, VOID, VOID, err);
88
88
  } else {
89
- get_terminal(context).j28(message, VOID, VOID, VOID, VOID, err);
89
+ get_terminal(context).q28(message, VOID, VOID, VOID, VOID, err);
90
90
  }
91
91
  return Unit_instance;
92
92
  }
93
93
  function installMordant$lambda($force) {
94
94
  return function ($this$configureContext) {
95
95
  var tmp;
96
- if (!$force && !($this$configureContext.a1c_1 == null)) {
96
+ if (!$force && !($this$configureContext.h1c_1 == null)) {
97
97
  return Unit_instance;
98
98
  }
99
99
  var tmp_0 = $this$configureContext;
100
- tmp_0.f1c_1 = installMordant$lambda$lambda;
100
+ tmp_0.m1c_1 = installMordant$lambda$lambda;
101
101
  var tmp_1 = $this$configureContext;
102
- tmp_1.n1c_1 = installMordant$lambda$lambda_0;
102
+ tmp_1.u1c_1 = installMordant$lambda$lambda_0;
103
103
  var tmp_2 = $this$configureContext;
104
- tmp_2.i1c_1 = installMordant$lambda$lambda_1;
104
+ tmp_2.p1c_1 = installMordant$lambda$lambda_1;
105
105
  var tmp_3 = $this$configureContext;
106
- tmp_3.q1c_1 = installMordant$lambda$lambda_2;
106
+ tmp_3.x1c_1 = installMordant$lambda$lambda_2;
107
107
  var tmp_4 = $this$configureContext;
108
- tmp_4.p1c_1 = installMordant$lambda$lambda_3;
108
+ tmp_4.w1c_1 = installMordant$lambda$lambda_3;
109
109
  return Unit_instance;
110
110
  };
111
111
  }
112
112
  function _get_terminal_$lambda_5keric($key) {
113
113
  return function (it) {
114
- var tmp = it.x19_1.m2($key);
114
+ var tmp = it.e1a_1.m2($key);
115
115
  return tmp instanceof Terminal ? tmp : null;
116
116
  };
117
117
  }
118
118
  function MordantHelpFormatter$formatHelp$lambda(this$0, $error, $prolog, $epilog, $parameters, $programName) {
119
119
  return function ($this$verticalLayout) {
120
- $this$verticalLayout.b25(1);
121
- $this$verticalLayout.y24(this$0.p1i($error, $prolog, $epilog, $parameters, $programName));
120
+ $this$verticalLayout.i25(1);
121
+ $this$verticalLayout.f25(this$0.w1i($error, $prolog, $epilog, $parameters, $programName));
122
122
  return Unit_instance;
123
123
  };
124
124
  }
125
125
  function MordantHelpFormatter$renderUsage$lambda($prog, $usageParts) {
126
126
  return function ($this$definitionList) {
127
- $this$definitionList.v28($prog, Text_init_$Create$($usageParts, Whitespace_NORMAL_getInstance()));
128
- $this$definitionList.p28_1 = true;
129
- $this$definitionList.s28(1);
127
+ $this$definitionList.c29($prog, Text_init_$Create$($usageParts, Whitespace_NORMAL_getInstance()));
128
+ $this$definitionList.w28_1 = true;
129
+ $this$definitionList.z28(1);
130
130
  return Unit_instance;
131
131
  };
132
132
  }
133
133
  function MordantHelpFormatter$renderProlog$lambda($this$withPadding) {
134
- $this$withPadding.y26_1 = 2;
134
+ $this$withPadding.f27_1 = 2;
135
135
  return Unit_instance;
136
136
  }
137
137
  function MordantHelpFormatter$renderParameters$lambda(this$0, $parameters) {
138
138
  return function ($this$definitionList) {
139
- var _iterator__ex2g4s = this$0.c1k($parameters).r();
139
+ var _iterator__ex2g4s = this$0.j1k($parameters).r();
140
140
  while (_iterator__ex2g4s.s()) {
141
141
  var section = _iterator__ex2g4s.t();
142
- $this$definitionList.v28(section.w1h_1, section.x1h_1);
142
+ $this$definitionList.c29(section.d1i_1, section.e1i_1);
143
143
  }
144
144
  return Unit_instance;
145
145
  };
146
146
  }
147
147
  function MordantHelpFormatter$renderOptionGroup$lambda($this$withPadding) {
148
- $this$withPadding.v26_1 = 1;
149
- $this$withPadding.y26_1 = 2;
150
- $this$withPadding.x26_1 = 1;
148
+ $this$withPadding.c27_1 = 1;
149
+ $this$withPadding.f27_1 = 2;
150
+ $this$withPadding.e27_1 = 1;
151
151
  return Unit_instance;
152
152
  }
153
153
  function MordantHelpFormatter$renderOptionGroup$lambda_0($markdown, this$0, $options) {
154
154
  return function ($this$verticalLayout) {
155
- $this$verticalLayout.a25($markdown);
156
- $this$verticalLayout.a25(this$0.m1k($options));
155
+ $this$verticalLayout.h25($markdown);
156
+ $this$verticalLayout.h25(this$0.t1k($options));
157
157
  return Unit_instance;
158
158
  };
159
159
  }
160
160
  function MordantHelpFormatter$buildParameterList$lambda($rows, this$0) {
161
161
  return function ($this$definitionList) {
162
- $this$definitionList.p28_1 = true;
162
+ $this$definitionList.w28_1 = true;
163
163
  var _iterator__ex2g4s = $rows.r();
164
164
  while (_iterator__ex2g4s.s()) {
165
165
  var row = _iterator__ex2g4s.t();
166
- $this$definitionList.w28(this$0.i1l(row), this$0.j1l(row));
166
+ $this$definitionList.d29(this$0.p1l(row), this$0.q1l(row));
167
167
  }
168
168
  return Unit_instance;
169
169
  };
@@ -174,20 +174,20 @@
174
174
  showRequiredTag = showRequiredTag === VOID ? false : showRequiredTag;
175
175
  AbstractHelpFormatter.call(this, context, requiredOptionMarker, showDefaultValues, showRequiredTag);
176
176
  }
177
- protoOf(MordantHelpFormatter).a2a = function () {
178
- return get_terminal(this.d1i_1).u21_1;
177
+ protoOf(MordantHelpFormatter).h2a = function () {
178
+ return get_terminal(this.k1i_1).b22_1;
179
179
  };
180
- protoOf(MordantHelpFormatter).t1b = function (error, prolog, epilog, parameters, programName) {
180
+ protoOf(MordantHelpFormatter).a1c = function (error, prolog, epilog, parameters, programName) {
181
181
  var widget = verticalLayout(MordantHelpFormatter$formatHelp$lambda(this, error, prolog, epilog, parameters, programName));
182
- return get_terminal(this.d1i_1).m28(widget);
182
+ return get_terminal(this.k1i_1).t28(widget);
183
183
  };
184
- protoOf(MordantHelpFormatter).r1i = function (parameters, error) {
185
- return Text_init_$Create$(this.v1i(parameters, error));
184
+ protoOf(MordantHelpFormatter).y1i = function (parameters, error) {
185
+ return Text_init_$Create$(this.c1j(parameters, error));
186
186
  };
187
- protoOf(MordantHelpFormatter).q1i = function (parameters, programName) {
188
- var title = this.b2a(this.o1i().d1l());
187
+ protoOf(MordantHelpFormatter).x1i = function (parameters, programName) {
188
+ var title = this.i2a(this.v1i().k1l());
189
189
  var prog = title + ' ' + programName;
190
- var usageParts = this.z1i(parameters);
190
+ var usageParts = this.g1j(parameters);
191
191
  var tmp;
192
192
  // Inline function 'kotlin.text.isEmpty' call
193
193
  if (charSequenceLength(usageParts) === 0) {
@@ -197,77 +197,77 @@
197
197
  }
198
198
  return tmp;
199
199
  };
200
- protoOf(MordantHelpFormatter).s1i = function (prolog) {
201
- var tmp = this.c2a(prolog);
200
+ protoOf(MordantHelpFormatter).z1i = function (prolog) {
201
+ var tmp = this.j2a(prolog);
202
202
  return withPadding(tmp, false, MordantHelpFormatter$renderProlog$lambda);
203
203
  };
204
- protoOf(MordantHelpFormatter).u1i = function (epilog) {
205
- return this.c2a(epilog);
204
+ protoOf(MordantHelpFormatter).b1j = function (epilog) {
205
+ return this.j2a(epilog);
206
206
  };
207
- protoOf(MordantHelpFormatter).t1i = function (parameters) {
207
+ protoOf(MordantHelpFormatter).a1j = function (parameters) {
208
208
  return definitionList(MordantHelpFormatter$renderParameters$lambda(this, parameters));
209
209
  };
210
- protoOf(MordantHelpFormatter).a1k = function (help, parameters) {
210
+ protoOf(MordantHelpFormatter).h1k = function (help, parameters) {
211
211
  // Inline function 'kotlin.collections.map' call
212
212
  // Inline function 'kotlin.collections.mapTo' call
213
213
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(parameters, 10));
214
214
  var _iterator__ex2g4s = parameters.r();
215
215
  while (_iterator__ex2g4s.s()) {
216
216
  var item = _iterator__ex2g4s.t();
217
- var tmp$ret$2 = this.f1k(item);
217
+ var tmp$ret$2 = this.m1k(item);
218
218
  destination.v(tmp$ret$2);
219
219
  }
220
220
  var options = destination;
221
221
  if (help == null)
222
- return this.m1k(options);
223
- var tmp = this.c2a(help);
222
+ return this.t1k(options);
223
+ var tmp = this.j2a(help);
224
224
  var markdown = withPadding(tmp, false, MordantHelpFormatter$renderOptionGroup$lambda);
225
225
  return verticalLayout(MordantHelpFormatter$renderOptionGroup$lambda_0(markdown, this, options));
226
226
  };
227
- protoOf(MordantHelpFormatter).l1i = function (name) {
227
+ protoOf(MordantHelpFormatter).s1i = function (name) {
228
228
  // Inline function 'kotlin.text.lowercase' call
229
229
  // Inline function 'kotlin.js.asDynamic' call
230
230
  return '<' + name.toLowerCase() + '>';
231
231
  };
232
- protoOf(MordantHelpFormatter).k1k = function (name) {
233
- return this.a2a().j21('danger').h1u(name);
232
+ protoOf(MordantHelpFormatter).r1k = function (name) {
233
+ return this.h2a().q21('danger').o1u(name);
234
234
  };
235
- protoOf(MordantHelpFormatter).t1k = function (name) {
236
- return this.a2a().j21('muted').h1u(name);
235
+ protoOf(MordantHelpFormatter).a1l = function (name) {
236
+ return this.h2a().q21('muted').o1u(name);
237
237
  };
238
- protoOf(MordantHelpFormatter).j1i = function (name) {
239
- return this.a2a().j21('info').h1u(name);
238
+ protoOf(MordantHelpFormatter).q1i = function (name) {
239
+ return this.h2a().q21('info').o1u(name);
240
240
  };
241
- protoOf(MordantHelpFormatter).m1i = function (name) {
242
- return this.a2a().j21('info').h1u(name);
241
+ protoOf(MordantHelpFormatter).t1i = function (name) {
242
+ return this.h2a().q21('info').o1u(name);
243
243
  };
244
- protoOf(MordantHelpFormatter).n1i = function (name) {
245
- return this.a2a().j21('info').h1u(name);
244
+ protoOf(MordantHelpFormatter).u1i = function (name) {
245
+ return this.h2a().q21('info').o1u(name);
246
246
  };
247
- protoOf(MordantHelpFormatter).b1k = function (title) {
248
- return this.a2a().j21('warning').h1u(title);
247
+ protoOf(MordantHelpFormatter).i1k = function (title) {
248
+ return this.h2a().q21('warning').o1u(title);
249
249
  };
250
- protoOf(MordantHelpFormatter).b2a = function (title) {
251
- return this.a2a().j21('warning').h1u(title);
250
+ protoOf(MordantHelpFormatter).i2a = function (title) {
251
+ return this.h2a().q21('warning').o1u(title);
252
252
  };
253
- protoOf(MordantHelpFormatter).x1i = function (title) {
254
- return this.a2a().j21('danger').h1u(title);
253
+ protoOf(MordantHelpFormatter).e1j = function (title) {
254
+ return this.h2a().q21('danger').o1u(title);
255
255
  };
256
- protoOf(MordantHelpFormatter).c1j = function (parameter) {
257
- return this.a2a().j21('muted').h1u(parameter);
256
+ protoOf(MordantHelpFormatter).j1j = function (parameter) {
257
+ return this.h2a().q21('muted').o1u(parameter);
258
258
  };
259
- protoOf(MordantHelpFormatter).v1k = function (metavar) {
260
- return this.a2a().j21('warning').y1x(this.a2a().j21('muted')).h1u(metavar);
259
+ protoOf(MordantHelpFormatter).c1l = function (metavar) {
260
+ return this.h2a().q21('warning').f1y(this.h2a().q21('muted')).o1u(metavar);
261
261
  };
262
- protoOf(MordantHelpFormatter).i1l = function (row) {
262
+ protoOf(MordantHelpFormatter).p1l = function (row) {
263
263
  var tmp;
264
264
  // Inline function 'kotlin.text.isNullOrEmpty' call
265
- var this_0 = row.a1i_1;
265
+ var this_0 = row.h1i_1;
266
266
  if (this_0 == null || charSequenceLength(this_0) === 0) {
267
267
  tmp = ' ';
268
268
  } else {
269
269
  // Inline function 'kotlin.text.ifEmpty' call
270
- var this_1 = drop(' ', ensureNotNull(row.a1i_1).length);
270
+ var this_1 = drop(' ', ensureNotNull(row.h1i_1).length);
271
271
  var tmp_0;
272
272
  // Inline function 'kotlin.text.isEmpty' call
273
273
  if (charSequenceLength(this_1) === 0) {
@@ -276,18 +276,18 @@
276
276
  tmp_0 = this_1;
277
277
  }
278
278
  var tmp$ret$1 = tmp_0;
279
- tmp = plus(row.a1i_1, tmp$ret$1);
279
+ tmp = plus(row.h1i_1, tmp$ret$1);
280
280
  }
281
281
  var termPrefix = tmp;
282
- return Text_init_$Create$(termPrefix + row.y1h_1, Whitespace_PRE_WRAP_getInstance());
282
+ return Text_init_$Create$(termPrefix + row.f1i_1, Whitespace_PRE_WRAP_getInstance());
283
283
  };
284
- protoOf(MordantHelpFormatter).j1l = function (row) {
285
- return isBlank(row.z1h_1) ? Text_init_$Create$('') : this.c2a(row.z1h_1);
284
+ protoOf(MordantHelpFormatter).q1l = function (row) {
285
+ return isBlank(row.g1i_1) ? Text_init_$Create$('') : this.j2a(row.g1i_1);
286
286
  };
287
- protoOf(MordantHelpFormatter).m1k = function (rows) {
287
+ protoOf(MordantHelpFormatter).t1k = function (rows) {
288
288
  return definitionList(MordantHelpFormatter$buildParameterList$lambda(rows, this));
289
289
  };
290
- protoOf(MordantHelpFormatter).c2a = function (text) {
290
+ protoOf(MordantHelpFormatter).j2a = function (text) {
291
291
  return Text_init_$Create$(replace(text, '\n\n', '\x85\x85'), Whitespace_NORMAL_getInstance());
292
292
  };
293
293
  //region block: exports