codesandbox / codesandbox/codesandbox-client

SandBox linked to Github; renamed files commited as new files

Open
#5,064 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

🐛 Bug GitHub
Dominant language
JavaScript
Stars
13.6k
Forks
2.4k
Avg merge
6d 19h
Merged PRs (30d)
2

Description

🐛 bug report

Preflight Checklist

  • I have read the
    Contributing Guidelines
    for this project.
  • I agree to follow the
    Code of Conduct
    that this project adheres to.
  • I have searched the issue tracker for an issue that matches the one I want
    to file, without success.

Description of the problem

I created a sandbox , linked it to my github repo. After initial commit, I renamed few files. Later found that on github, both files exist, ones with old name, and renamed ones.

How has this issue affected you? What are you trying to accomplish?

Despite, code working fine on CSB website, it contained duplicate files.
I expected that the original file would be replaced by the renamed files.

To Reproduce
  1. Create a sandbox on CSB website
  2. Link it to a github repo and initial commit
  3. rename one or more files (e.g. change file extension)
  4. commit again
  5. go to github repo and observe the files such as original file and renamed file
Link to sandbox: link (provided)
Your Environment
Software Name/Version
Сodesandbox f79b557df
Browser Microsoft Edge v86.0
Operating System Windows 10 Pro

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the problem with the linked sandbox: create a GitHub-linked sandbox, commit it, rename a file, and commit again. Trace the GitHub synchronization flow responsible for file renames, then verify that the repository contains the renamed file without the obsolete filename.

Written by the indexing model from the issue text.

Assessment

Tech stack
github, javascript
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.