spf13 / cobra-cli

Cobra CLI tool to generate applications and commands

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tests broken in 2023

vcunat opened this issue · comments

running tests
=== RUN   TestGoldenAddCmd
    add_test.go:28: "/build/source/cmd/testproject/cmd/test.go" and "testdata/test.go.golden" are not equal!
        
        $ diff -u /build/source/cmd/testproject/cmd/test.go testdata/test.go.golden
        --- /build/source/cmd/testproject/cmd/test.go   2023-01-19 16:36:00.335867015 +0000
        +++ testdata/test.go.golden     1970-01-01 00:00:01.000000000 +0000
        @@ -1,5 +1,5 @@
         /*
        -Copyright © 2023 NAME HERE <EMAIL ADDRESS>
        +Copyright © 2022 NAME HERE <EMAIL ADDRESS>
         
         Licensed under the Apache License, Version 2.0 (the "License");
         you may not use this file except in compliance with the License.
        
        exit status 1
--- FAIL: TestGoldenAddCmd (0.00s)
=== RUN   TestValidateCmdName
--- PASS: TestValidateCmdName (0.00s)
=== RUN   TestGoldenInitCmd
=== RUN   TestGoldenInitCmd/successfully_creates_a_project_based_on_module
    init_test.go:77: "/build/source/cmd/testproject/main.go" and "testdata/main.go.golden" are not equal!
        
        $ diff -u /build/source/cmd/testproject/main.go testdata/main.go.golden
        --- /build/source/cmd/testproject/main.go       2023-01-19 16:36:00.515874546 +0000
        +++ testdata/main.go.golden     1970-01-01 00:00:01.000000000 +0000
        @@ -1,5 +1,5 @@
         /*
        -Copyright © 2023 NAME HERE <EMAIL ADDRESS>
        +Copyright © 2022 NAME HERE <EMAIL ADDRESS>
         
         Licensed under the Apache License, Version 2.0 (the "License");
         you may not use this file except in compliance with the License.
        
        exit status 1
--- FAIL: TestGoldenInitCmd (0.18s)
    --- FAIL: TestGoldenInitCmd/successfully_creates_a_project_based_on_module (0.18s)
FAIL
FAIL    github.com/spf13/cobra-cli/cmd  0.187s
FAIL

/cc nixpkgs maintainer @ivankovnatsky

Happens every year 🙂. Add soon as someone posts a PR, I'll merge it

This issue is being marked as stale due to a long period of inactivity

This issue is being marked as stale due to a long period of inactivity