[GH-ISSUE #2452] action-offline-mode help grammar is poor #1131

Open
opened 2026-03-01 21:49:09 +03:00 by kerem · 3 comments
Owner

Originally created by @jsoref on GitHub (Sep 10, 2024).
Original GitHub issue: https://github.com/nektos/act/issues/2452

github.com/nektos/act@f75a2d8b38/cmd/root.go (L100)

 /opt/homebrew/bin/act --help|grep action-offline-mode
      --action-offline-mode                               If action contents exists, it will not be fetch and pull again. If turn on this,will turn off force pull

There's something wrong with this,will, but there are other problems with the line

Offhand, you might want this:

-      --action-offline-mode                               If action contents exists, it will not be fetch and pull again. If turn on this,will turn off force pull
+      --action-offline-mode                               If action contents exists, it will not be fetched and pulled again. If turned on this, will turn off force pull

act --bug-report:

act version:            0.2.67
GOOS:                   darwin
GOARCH:                 arm64
NumCPU:                 10
Docker host:            DOCKER_HOST environment variable is not set
Sockets found:
	/var/run/docker.sock
Config files:           
	/Users/jsoref/.actrc:
		#-P ubuntu-latest=node:12.20.1-buster-slim
		#-P ubuntu-20.04=node:12.20.1-buster-slim
		#-P ubuntu-18.04=node:12.20.1-buster-slim
		-P ubuntu-latest=catthehacker/ubuntu:act-latest
		-P ubuntu-22.04=catthehacker/ubuntu:act-22.04
		-P ubuntu-20.04=catthehacker/ubuntu:act-20.04
		-P ubuntu-18.04=catthehacker/ubuntu:act-18.04
		-P ubuntu-16.04=catthehacker/ubuntu:act-16.04
		-P self-hosted=catthehacker/ubuntu:act-latest
		-P ubuntu-latest-4cpu=ubuntu:act-latest
		-P ubuntu-latest-8cpu=ubuntu:act-latest
		--use-new-action-cache
Build info:
	Go version:            go1.23.1
	Module path:           command-line-arguments
	Main version:          
	Main path:             
	Main checksum:         
	Build settings:
		-buildmode:           exe
		-compiler:            gc
		-ldflags:             -X main.version=0.2.67
		DefaultGODEBUG:       asynctimerchan=1,gotypesalias=0,httplaxcontentlength=1,httpmuxgo121=1,httpservecontentkeepheaders=1,tls10server=1,tls3des=1,tlskyber=0,tlsrsakex=1,tlsunsafeekm=1,winreadlinkvolume=0,winsymlink=0,x509keypairleaf=0,x509negativeserial=1
		CGO_ENABLED:          1
		CGO_CFLAGS:           
		CGO_CPPFLAGS:         
		CGO_CXXFLAGS:         
		CGO_LDFLAGS:          
		GOARCH:               arm64
		GOOS:                 darwin
		GOARM64:              v8.0
Docker Engine:
	Engine version:        26.1.3
	Engine runtime:        runc
	Cgroup version:        2
	Cgroup driver:         cgroupfs
	Storage driver:        overlay2
	Registry URI:          https://index.docker.io/v1/
	OS:                    Alpine Linux v3.20
	OS type:               linux
	OS version:            3.20.2
	OS arch:               aarch64
	OS kernel:             6.6.41-0-virt
	OS CPU:                2
	OS memory:             1906 MB
	Security options:
		name=seccomp,profile=builtin
		name=cgroupns

Originally created by @jsoref on GitHub (Sep 10, 2024). Original GitHub issue: https://github.com/nektos/act/issues/2452 https://github.com/nektos/act/blob/f75a2d8b38cc3b929ab652c0994d6d33f6584ed9/cmd/root.go#L100 ```sh /opt/homebrew/bin/act --help|grep action-offline-mode --action-offline-mode If action contents exists, it will not be fetch and pull again. If turn on this,will turn off force pull ``` There's _something_ wrong with `this,will`, but there are other problems with the line Offhand, you _might_ want this: ```diff - --action-offline-mode If action contents exists, it will not be fetch and pull again. If turn on this,will turn off force pull + --action-offline-mode If action contents exists, it will not be fetched and pulled again. If turned on this, will turn off force pull ``` `act --bug-report`: ```sh act version: 0.2.67 GOOS: darwin GOARCH: arm64 NumCPU: 10 Docker host: DOCKER_HOST environment variable is not set Sockets found: /var/run/docker.sock Config files: /Users/jsoref/.actrc: #-P ubuntu-latest=node:12.20.1-buster-slim #-P ubuntu-20.04=node:12.20.1-buster-slim #-P ubuntu-18.04=node:12.20.1-buster-slim -P ubuntu-latest=catthehacker/ubuntu:act-latest -P ubuntu-22.04=catthehacker/ubuntu:act-22.04 -P ubuntu-20.04=catthehacker/ubuntu:act-20.04 -P ubuntu-18.04=catthehacker/ubuntu:act-18.04 -P ubuntu-16.04=catthehacker/ubuntu:act-16.04 -P self-hosted=catthehacker/ubuntu:act-latest -P ubuntu-latest-4cpu=ubuntu:act-latest -P ubuntu-latest-8cpu=ubuntu:act-latest --use-new-action-cache Build info: Go version: go1.23.1 Module path: command-line-arguments Main version: Main path: Main checksum: Build settings: -buildmode: exe -compiler: gc -ldflags: -X main.version=0.2.67 DefaultGODEBUG: asynctimerchan=1,gotypesalias=0,httplaxcontentlength=1,httpmuxgo121=1,httpservecontentkeepheaders=1,tls10server=1,tls3des=1,tlskyber=0,tlsrsakex=1,tlsunsafeekm=1,winreadlinkvolume=0,winsymlink=0,x509keypairleaf=0,x509negativeserial=1 CGO_ENABLED: 1 CGO_CFLAGS: CGO_CPPFLAGS: CGO_CXXFLAGS: CGO_LDFLAGS: GOARCH: arm64 GOOS: darwin GOARM64: v8.0 Docker Engine: Engine version: 26.1.3 Engine runtime: runc Cgroup version: 2 Cgroup driver: cgroupfs Storage driver: overlay2 Registry URI: https://index.docker.io/v1/ OS: Alpine Linux v3.20 OS type: linux OS version: 3.20.2 OS arch: aarch64 OS kernel: 6.6.41-0-virt OS CPU: 2 OS memory: 1906 MB Security options: name=seccomp,profile=builtin name=cgroupns ```
Author
Owner

@github-actions[bot] commented on GitHub (Mar 10, 2025):

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

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

@jsoref commented on GitHub (Mar 10, 2025):

.

<!-- gh-comment-id:2710207812 --> @jsoref commented on GitHub (Mar 10, 2025): .
Author
Owner

@jsoref commented on GitHub (Mar 10, 2025):

  • #2590 added the missing space

The rest of the grammar is still wrong, but ...

<!-- gh-comment-id:2710257627 --> @jsoref commented on GitHub (Mar 10, 2025): - #2590 added the missing space The rest of the grammar is still wrong, but ...
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#1131
No description provided.