apify-cli icon indicating copy to clipboard operation
apify-cli copied to clipboard

'apify push' doesn't work if .actor directory is in .gitignore

Open metalwarrior665 opened this issue 1 year ago • 0 comments

Our use-case is that we want to use top-level.actor only for local testing but not pollute production code with it. For some reason the CLI seems to rely on Git?

If I have .actor in .gitignore, apify push gives A valid Actor could not be found in the current directory. Please make sure you are in the correct directory. You can also turn this directory into an Actor by running apify init.

If I remove it from .gitignore, it works fine.

I find it not intuitive that Git should affect how CLI treats my local files so it is probably a bug?

metalwarrior665 avatar Nov 27 '24 11:11 metalwarrior665