Skip to content

Commit dd77070

Browse files
fix: revert changes from a previous PR that broke the detection of multiple services in language_platforms (#163)
Signed-off-by: Harikrishnan Balagopal <[email protected]>
1 parent 294f95a commit dd77070

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal/filesystem/filesystem.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -798,8 +798,8 @@ func (fs *FileSystem) createWorkspaceInput(t *bolt.Tx, workspaceId string, workI
798798
if err := putM2KIgnore(archExpDir); err != nil { // also creates the directory if it doesn't exist, overwrites if it does exist
799799
return fmt.Errorf("failed to create a m2kignore file at the path %s . Error: %q", archExpDir, err)
800800
}
801-
if err := os.MkdirAll(archiveExpandedPath, DEFAULT_DIRECTORY_PERMISSIONS); err != nil {
802-
return fmt.Errorf("failed to create a directory at the path %s . Error: %w", archiveExpandedPath, err)
801+
if err := putM2KIgnore(archiveExpandedPath); err != nil {
802+
return fmt.Errorf("failed to create a m2kignore file at the path %s . Error: %w", archiveExpandedPath, err)
803803
}
804804
// write the archive they uploaded
805805
f, err := os.OpenFile(archivePath, os.O_WRONLY|os.O_CREATE, DEFAULT_FILE_PERMISSIONS)
@@ -927,8 +927,8 @@ func (fs *FileSystem) createProjectInput(t *bolt.Tx, workspaceId, projectId stri
927927
if err := putM2KIgnore(archExpDir); err != nil { // also creates the directory if it doesn't exist, overwrites if it does exist
928928
return fmt.Errorf("failed to create a m2kignore file at the path %s . Error: %q", archExpDir, err)
929929
}
930-
if err := os.MkdirAll(archiveExpandedPath, DEFAULT_DIRECTORY_PERMISSIONS); err != nil {
931-
return fmt.Errorf("failed to create a directory at the path %s . Error: %w", archiveExpandedPath, err)
930+
if err := putM2KIgnore(archiveExpandedPath); err != nil {
931+
return fmt.Errorf("failed to create a m2kignore file at the path %s . Error: %w", archiveExpandedPath, err)
932932
}
933933
// write the archive they uploaded
934934
f, err := os.OpenFile(archivePath, os.O_WRONLY|os.O_CREATE, DEFAULT_FILE_PERMISSIONS)

0 commit comments

Comments
 (0)