Thanks to visit codestin.com
Credit goes to github.com

Skip to content

wolfictl bump fails if epoch line has comment #1282

@smoser

Description

@smoser

wolfictl bump will fail if the epoch line has a comment. Currently failing on wolfi-dev/os main in php-8.3-amqp.yaml as shown below.

$ wolfictl version | grep "^[A-Z]"                         
GitVersion:    devel
GitCommit:     1fceb4d28ca010fedb891791daab9422786df5e7
GitTreeState:  dirty
BuildDate:     2024-10-26T03:36:43
GoVersion:     go1.23.2
Compiler:      gc
Platform:      linux/amd64

$ git remote -v | grep upstream.*fetch
upstream        [email protected]:wolfi-dev/os (fetch)

$ git checkout upstream/main                              
HEAD is now at c927d988a confluent-kafka/8.0.0.48 package update (#32316)

$ wolfictl bump php-8.2-amqp.yaml 
bumping php-8.2-amqp-2.1.2-1 in php-8.2-amqp.yaml to epoch 2

$ wolfictl bump php-8.3-amqp.yaml                          
bumping php-8.3-amqp-2.1.2-1 in php-8.3-amqp.yaml to epoch 2
Error: unable to find epoch tag in yaml config
2024/10/30 09:45:30 ERRO unable to find epoch tag in yaml config

$ diff -u php-8.2-amqp.yaml php-8.3-amqp.yaml  | head -n 10
--- php-8.2-amqp.yaml
+++ php-8.3-amqp.yaml
@@ -1,15 +1,17 @@
 package:
-  name: php-8.2-amqp
+  name: php-8.3-amqp
   version: 2.1.2
-  epoch: 2
+  epoch: 1 # NB intentionally meant to be picked over previous php-amqp
   description: "PHP extension to communicate with any AMQP compliant server"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-triageapplied to all new customer/user issues. Removed after triage occurs.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions