Skip to content

Commit

Permalink
fix: revert changes from a previous PR that broke the detection of mu…
Browse files Browse the repository at this point in the history
…ltiple services in language_platforms (#163)

Signed-off-by: Harikrishnan Balagopal <harikrishmenon@gmail.com>
  • Loading branch information
HarikrishnanBalagopal committed Mar 21, 2024
1 parent 294f95a commit dd77070
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/filesystem/filesystem.go
Original file line number Diff line number Diff line change
Expand Up @@ -798,8 +798,8 @@ func (fs *FileSystem) createWorkspaceInput(t *bolt.Tx, workspaceId string, workI
if err := putM2KIgnore(archExpDir); err != nil { // also creates the directory if it doesn't exist, overwrites if it does exist
return fmt.Errorf("failed to create a m2kignore file at the path %s . Error: %q", archExpDir, err)
}
if err := os.MkdirAll(archiveExpandedPath, DEFAULT_DIRECTORY_PERMISSIONS); err != nil {
return fmt.Errorf("failed to create a directory at the path %s . Error: %w", archiveExpandedPath, err)
if err := putM2KIgnore(archiveExpandedPath); err != nil {
return fmt.Errorf("failed to create a m2kignore file at the path %s . Error: %w", archiveExpandedPath, err)
}
// write the archive they uploaded
f, err := os.OpenFile(archivePath, os.O_WRONLY|os.O_CREATE, DEFAULT_FILE_PERMISSIONS)
Expand Down Expand Up @@ -927,8 +927,8 @@ func (fs *FileSystem) createProjectInput(t *bolt.Tx, workspaceId, projectId stri
if err := putM2KIgnore(archExpDir); err != nil { // also creates the directory if it doesn't exist, overwrites if it does exist
return fmt.Errorf("failed to create a m2kignore file at the path %s . Error: %q", archExpDir, err)
}
if err := os.MkdirAll(archiveExpandedPath, DEFAULT_DIRECTORY_PERMISSIONS); err != nil {
return fmt.Errorf("failed to create a directory at the path %s . Error: %w", archiveExpandedPath, err)
if err := putM2KIgnore(archiveExpandedPath); err != nil {
return fmt.Errorf("failed to create a m2kignore file at the path %s . Error: %w", archiveExpandedPath, err)
}
// write the archive they uploaded
f, err := os.OpenFile(archivePath, os.O_WRONLY|os.O_CREATE, DEFAULT_FILE_PERMISSIONS)
Expand Down

0 comments on commit dd77070

Please sign in to comment.