Skip to content

Caching issue when deleting and recreating a project with the same name #47

Description

@WolfGreyDev

Branch: next

When deleting a project and recreating it with the same name, a caching issue occurs that prevents proper project initialization.

Steps to Reproduce

  1. Create a project using sy create (e.g., name it "cache-test")
  2. Delete the project
  3. Attempt to recreate a project with the same name ("cache-test") in the same location
  4. See the error: Project cache has not been created

Expected Behavior

The project should be recreated successfully without caching issues, similar to creating a new project.

Actual Behavior

The command fails with a cache-related error. The issue appears to stem from cached files/folders in .syncify that aren't properly cleared when a project is deleted.

Additional Context

➜  playground sy create

┌─ Syncify ~ 12:25:54
│
│  v1.0.0-unstable.2
│
│  Hello Hacker 👋
│
│  This command prompt can be used to jump start a new project. Choose one of the
│  open source themes or usage examples available. Alternatively, you can import a
│  theme from a store and Syncify will strap it for you.
│
│  Strap Source:     ➔  themes
│  Choose Strap:     ➔  dusk
│  Project Name:     ➔  cache-test
│  Storage Method:   ➔  env
│  Shopify Domain:   ➔  wolfgrey-playground.myshopify.com
│  API Admin Token:  ➔  shpat_55e3f3c1e8***8ef56**5085d1
│  Installation:     ➔  pnpm
│  ERROR
│
│  Project cache has not been created
│
└─ Syncify ~ 12:26:22

Temporary Workaround

Manually remove any existing .syncify cache folders before recreating the project.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    unstableAny issue that relates to the unstable/next branch

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions