Skip to content

.devpodignore file does not work on local repo #1885

Open
@stevefan1999-personal

Description

@stevefan1999-personal

Despite I have a .devpodignore file in my local repo, it seems like the .devpodignore file is not read during streaming upload, everything is still included, which includes a huge CMake build directory (of 30GB) and it eats up all the space, and I have no idea why.

Probably due to workspace folder permission issue?

f, err := os.Open(filepath.Join(t.workspace.Source.LocalFolder, ".devpodignore"))

The case for err != nil is not handled and we should warn the user about it, but I'm more skeptical that t.workspace.Source.LocalFolder is pointing to the wrong direction.

I'm using the Kubernetes provider and just ran it with my local repo existing on filesystem, and while I can always just upload this to Git and let gitignore take in charge instead, this is kind of a weird issue I don't think it should have had happened in the first place

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions