deta / deta-cli

Legacy Deta CLI. Repository is now archived.
https://deta.space
MIT License
67 stars 13 forks source link

Not allowed to change or delete some files requested #45

Closed arlopezg closed 3 years ago

arlopezg commented 3 years ago

Hey there,

I'm trying to deploy a micro but I'm getting the error from the title instead.

This is basically what happened:

  1. deta new --python
  2. First few deploys worked just fine
  3. Changed some files, formatted, linted, etc.
  4. Try to deploy again and got the error

Prerequisites

Expected Behavior

I'd like to know the specific files that can't be modified/deleted or another way to fix my deploys.

Current Behavior

When running deta deploy either locally or in a CI workflow using an access token, I get the following error:

❯ deta deploy Deploying... Error: failed to deploy: Not allowed to change or delete some files requested

Context

Failure Logs

None that I know of.

arlopezg commented 3 years ago

Nevermind, I just figured it out I think. I had moved my main.py to another folder and restoring it back to the root directory allowed me to deploy again.

Still, a clearer error message would be much appreciated

Weapon-X6 commented 2 years ago

Is there a way to change the location of the main.py?

aavshr commented 2 years ago

@Weapon-X6 not at the moment sorry, main.py has to be present in the root directory of the Micro.