[GH-ISSUE #457] Chocolatey updates broken #320

Closed
opened 2026-03-01 21:42:21 +03:00 by kerem · 4 comments
Owner

Originally created by @tylergohl on GitHub (Jan 2, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/457

Looks like Chocolatey updates stopped updating at v0.2.9 - https://chocolatey.org/packages/act-cli#versionhistory.

I'm going to see if there is anything obvious that can be addressed there.

Originally created by @tylergohl on GitHub (Jan 2, 2021). Original GitHub issue: https://github.com/nektos/act/issues/457 Looks like Chocolatey updates stopped updating at `v0.2.9` - https://chocolatey.org/packages/act-cli#versionhistory. I'm going to see if there is anything obvious that can be addressed there.
kerem closed this issue 2026-03-01 21:42:21 +03:00
Author
Owner

@tylergohl commented on GitHub (Jan 2, 2021):

Looking at the error logs for the most recent push - the first error I see is:

              run_tasks:
              
                   [echo] ====================
                   [echo] GitVersioner
                   [echo] ====================
              Running custom tasks if /usr/local/src/choco/.build.custom/versioners/git.pre.step exists (or with .ps1/.rb added to the end of it).
              Setting app.ruby to 'ruby'
              Setting app.powershell to '/System32/WindowsPowerShell/v1.0/powershell.exe'
              Running custom tasks if /usr/local/src/choco/.build.custom/versioners/git.replace.step exists (or with .ps1/.rb added to the end of it).
              Setting app.ruby to 'ruby'
              Setting app.powershell to '/System32/WindowsPowerShell/v1.0/powershell.exe'
              
              get_revision:
              
                   [echo] Getting revision number from working directory '/usr/local/src/choco' or remotely at https://github.com/chocolatey/choco.
                   [exec] Starting 'git (describe)' in '/usr/local/src/choco'
                   [exec] /usr/local/src/choco/.build/versioners/git.step(26,6):
                   [exec] 'git' failed to start.
              
              BUILD FAILED - 1 non-fatal error(s), 4 warning(s)
              
              /usr/local/src/choco/.build/versioners/git.step(40,7):
              Property evaluation failed.
              Expression: ${string::trim(version.revision.output)}
                                         ^^^^^^^^^^^^^^^^^^^^^^^:
              NAnt.Core.BuildException: /usr/local/src/choco/.build/versioners/git.step(40,7):
              Property evaluation failed.
              Expression: ${string::trim(version.revision.output)}
                                         ^^^^^^^^^^^^^^^^^^^^^^^ ---> Property 'version.revision.output' has not been set.:
              NAnt.Core.BuildException: Property 'version.revision.output' has not been set.
                at NAnt.Core.ExpressionEvaluator.GetPropertyValue (System.String propertyName) [0x00000] in <filename unknown>:0 
                at NAnt.Core.ExpressionEvaluator.EvaluateProperty (System.String propertyName) [0x00000] in <filename unknown>:0 
                at NAnt.Core.ExpressionEvalBase.ParseValue () [0x00000] in <filename unknown>:0 
                --- End of inner exception stack trace ---
                at NAnt.Core.PropertyDictionary.EvaluateEmbeddedExpressions (System.String input, NAnt.Core.Location location, System.Collections.Hashtable state, System.Collections.Stack visiting) [0x00000] in <filename unknown>:0 
                at NAnt.Core.PropertyDictionary.ExpandProperties (System.String input, NAnt.Core.Location location, System.Collections.Hashtable state, System.Collections.Stack visiting) [0x00000] in <filename unknown>:0 
                at NAnt.Core.PropertyDictionary.ExpandProperties (System.String input, NAnt.Core.Location location) [0x00000] in <filename unknown>:0 
                at NAnt.Core.Project.ExpandProperties (System.String input, NAnt.Core.Location location) [0x00000] in <filename unknown>:0 
                at NAnt.Core.Tasks.PropertyTask.ExecuteTask () [0x00000] in <filename unknown>:0 
                at NAnt.Core.Task.Execute () [0x00000] in <filename unknown>:0 
              
              Total time: 1.2 seconds.
              
       [nant] Nested build failed.  Refer to build log for exact reason.:
       [nant] NAnt.Core.BuildException: Nested build failed.  Refer to build log for exact reason.
       [nant]   at NAnt.Core.Tasks.NAntTask.RunBuild (System.IO.FileInfo buildFile) [0x00000] in <filename unknown>:0 
       [nant]   at NAnt.Core.Tasks.NAntTask.ExecuteTask () [0x00000] in <filename unknown>:0 
       [nant]   at NAnt.Core.Task.Execute () [0x00000] in <filename unknown>:0 
       [echo] Using revision number: 0 and hash: 0.
<!-- gh-comment-id:753496229 --> @tylergohl commented on GitHub (Jan 2, 2021): Looking at the error logs for the most recent push - the [first error I see](https://github.com/nektos/act/runs/1370743179#step:4:551) is: ``` run_tasks: [echo] ==================== [echo] GitVersioner [echo] ==================== Running custom tasks if /usr/local/src/choco/.build.custom/versioners/git.pre.step exists (or with .ps1/.rb added to the end of it). Setting app.ruby to 'ruby' Setting app.powershell to '/System32/WindowsPowerShell/v1.0/powershell.exe' Running custom tasks if /usr/local/src/choco/.build.custom/versioners/git.replace.step exists (or with .ps1/.rb added to the end of it). Setting app.ruby to 'ruby' Setting app.powershell to '/System32/WindowsPowerShell/v1.0/powershell.exe' get_revision: [echo] Getting revision number from working directory '/usr/local/src/choco' or remotely at https://github.com/chocolatey/choco. [exec] Starting 'git (describe)' in '/usr/local/src/choco' [exec] /usr/local/src/choco/.build/versioners/git.step(26,6): [exec] 'git' failed to start. BUILD FAILED - 1 non-fatal error(s), 4 warning(s) /usr/local/src/choco/.build/versioners/git.step(40,7): Property evaluation failed. Expression: ${string::trim(version.revision.output)} ^^^^^^^^^^^^^^^^^^^^^^^: NAnt.Core.BuildException: /usr/local/src/choco/.build/versioners/git.step(40,7): Property evaluation failed. Expression: ${string::trim(version.revision.output)} ^^^^^^^^^^^^^^^^^^^^^^^ ---> Property 'version.revision.output' has not been set.: NAnt.Core.BuildException: Property 'version.revision.output' has not been set. at NAnt.Core.ExpressionEvaluator.GetPropertyValue (System.String propertyName) [0x00000] in <filename unknown>:0 at NAnt.Core.ExpressionEvaluator.EvaluateProperty (System.String propertyName) [0x00000] in <filename unknown>:0 at NAnt.Core.ExpressionEvalBase.ParseValue () [0x00000] in <filename unknown>:0 --- End of inner exception stack trace --- at NAnt.Core.PropertyDictionary.EvaluateEmbeddedExpressions (System.String input, NAnt.Core.Location location, System.Collections.Hashtable state, System.Collections.Stack visiting) [0x00000] in <filename unknown>:0 at NAnt.Core.PropertyDictionary.ExpandProperties (System.String input, NAnt.Core.Location location, System.Collections.Hashtable state, System.Collections.Stack visiting) [0x00000] in <filename unknown>:0 at NAnt.Core.PropertyDictionary.ExpandProperties (System.String input, NAnt.Core.Location location) [0x00000] in <filename unknown>:0 at NAnt.Core.Project.ExpandProperties (System.String input, NAnt.Core.Location location) [0x00000] in <filename unknown>:0 at NAnt.Core.Tasks.PropertyTask.ExecuteTask () [0x00000] in <filename unknown>:0 at NAnt.Core.Task.Execute () [0x00000] in <filename unknown>:0 Total time: 1.2 seconds. [nant] Nested build failed. Refer to build log for exact reason.: [nant] NAnt.Core.BuildException: Nested build failed. Refer to build log for exact reason. [nant] at NAnt.Core.Tasks.NAntTask.RunBuild (System.IO.FileInfo buildFile) [0x00000] in <filename unknown>:0 [nant] at NAnt.Core.Tasks.NAntTask.ExecuteTask () [0x00000] in <filename unknown>:0 [nant] at NAnt.Core.Task.Execute () [0x00000] in <filename unknown>:0 [echo] Using revision number: 0 and hash: 0. ```
Author
Owner

@tylergohl commented on GitHub (Jan 2, 2021):

Adding git to the apt-get install of the Dockerfile resolves the error above but produces a new error because the working directory isn't a git repository:

            
                 [echo] Getting revision number from working directory '/usr/local/src/choco' or remotely at https://github.com/chocolatey/choco.
                 [exec] Starting 'git (describe)' in '/usr/local/src/choco'
                 [exec] fatal: Not a git repository (or any of the parent directories): .git
                 [exec] /usr/local/src/choco/.build/versioners/git.step(26,6):
                 [exec] External Program Failed: git (return code was 128)
               [delete] Deleting file /usr/local/src/choco/.build/versioners/_revision.xml.
            
            get_externally_provided_revision:
            
            
            set_version_environment_variable:
            
               [setenv] Setting environment variable "uc.app.revision" to "fatal: Not a git repository (or any of the parent directories): .git".
               [setenv] Setting environment variable "uc.app.revision.hash" to "fatal: Not a git repository (or any of the parent directories): .git".
            
            run_normal_tasks:
            
            Running custom tasks if /usr/local/src/choco/.build.custom/versioners/git.post.step exists (or with .ps1/.rb added to the end of it).
            Setting app.ruby to 'ruby'
            Setting app.powershell to '/System32/WindowsPowerShell/v1.0/powershell.exe'
            
            go:
            
            
            BUILD SUCCEEDED - 1 non-fatal error(s), 5 warning(s)
            
            Total time: 0.9 seconds.

I'm not sure if this is the error that is ultimately leading to the build failing however or just a red herring. Here are some examples of the errors that ultimately cause the build to fail I believe:

[exec] infrastructure/registration/SimpleInjectorContainer.cs(32,38): error CS0246: The type or namespace name `Container' could not be found. Are you missing `System.ComponentModel' using directive? [exec] infrastructure/registration/SimpleInjectorContainer.cs(62,23): error CS0246: The type or namespace name `Container' could not be found. Are you missing `System.ComponentModel' using directive? [exec] infrastructure/registration/SimpleInjectorContainer.cs(67,24): error CS0246: The type or namespace name `Container' could not be found. Are you missing `System.ComponentModel' using directive? [exec] infrastructure/registration/SimpleInjectorContainer.cs(92,77): error CS0246: The type or namespace name `Container' could not be found. Are you missing `System.ComponentModel' using directive? [exec] infrastructure/logging/Log4NetAppenderConfiguration.cs(39,33): error CS0246: The type or namespace name `log4net' could not be found. Are you missing an assembly reference? [exec] infrastructure/logging/Log4NetLog.cs(35,17): error CS0246: The type or namespace name `log4net' could not be found. Are you missing an assembly reference? [exec] infrastructure/logging/Log4NetLog.cs(115,26): error CS0246: The type or namespace name `Level' could not be found. Are you missing an assembly reference?

<!-- gh-comment-id:753510095 --> @tylergohl commented on GitHub (Jan 2, 2021): Adding `git` to the apt-get install of the Dockerfile resolves the error above but produces a new error because the working directory isn't a git repository: ```get_revision: [echo] Getting revision number from working directory '/usr/local/src/choco' or remotely at https://github.com/chocolatey/choco. [exec] Starting 'git (describe)' in '/usr/local/src/choco' [exec] fatal: Not a git repository (or any of the parent directories): .git [exec] /usr/local/src/choco/.build/versioners/git.step(26,6): [exec] External Program Failed: git (return code was 128) [delete] Deleting file /usr/local/src/choco/.build/versioners/_revision.xml. get_externally_provided_revision: set_version_environment_variable: [setenv] Setting environment variable "uc.app.revision" to "fatal: Not a git repository (or any of the parent directories): .git". [setenv] Setting environment variable "uc.app.revision.hash" to "fatal: Not a git repository (or any of the parent directories): .git". run_normal_tasks: Running custom tasks if /usr/local/src/choco/.build.custom/versioners/git.post.step exists (or with .ps1/.rb added to the end of it). Setting app.ruby to 'ruby' Setting app.powershell to '/System32/WindowsPowerShell/v1.0/powershell.exe' go: BUILD SUCCEEDED - 1 non-fatal error(s), 5 warning(s) Total time: 0.9 seconds. ``` I'm not sure if this is the error that is ultimately leading to the build failing however or just a red herring. Here are some examples of the errors that ultimately cause the build to fail I believe: ``` [exec] infrastructure/registration/SimpleInjectorContainer.cs(32,38): error CS0246: The type or namespace name `Container' could not be found. Are you missing `System.ComponentModel' using directive? [exec] infrastructure/registration/SimpleInjectorContainer.cs(62,23): error CS0246: The type or namespace name `Container' could not be found. Are you missing `System.ComponentModel' using directive? [exec] infrastructure/registration/SimpleInjectorContainer.cs(67,24): error CS0246: The type or namespace name `Container' could not be found. Are you missing `System.ComponentModel' using directive? [exec] infrastructure/registration/SimpleInjectorContainer.cs(92,77): error CS0246: The type or namespace name `Container' could not be found. Are you missing `System.ComponentModel' using directive? [exec] infrastructure/logging/Log4NetAppenderConfiguration.cs(39,33): error CS0246: The type or namespace name `log4net' could not be found. Are you missing an assembly reference? [exec] infrastructure/logging/Log4NetLog.cs(35,17): error CS0246: The type or namespace name `log4net' could not be found. Are you missing an assembly reference? [exec] infrastructure/logging/Log4NetLog.cs(115,26): error CS0246: The type or namespace name `Level' could not be found. Are you missing an assembly reference?```
Author
Owner

@github-actions[bot] commented on GitHub (Feb 2, 2021):

Issue is stale and will be closed in 14 days unless there is new activity

<!-- gh-comment-id:771257587 --> @github-actions[bot] commented on GitHub (Feb 2, 2021): Issue is stale and will be closed in 14 days unless there is new activity
Author
Owner

@tylergohl commented on GitHub (Feb 2, 2021):

This is still broken but I haven't had a chance to look, just commenting here so it doesn't get auto closed.

<!-- gh-comment-id:771705218 --> @tylergohl commented on GitHub (Feb 2, 2021): This is still broken but I haven't had a chance to look, just commenting here so it doesn't get auto closed.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#320
No description provided.