Skip to content

Commit

Permalink
fix: add other entrypoint files to dockerignore
Browse files Browse the repository at this point in the history
  • Loading branch information
davemooreuws committed Mar 18, 2024
1 parent 7f3f944 commit f480f08
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pkg/project/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,10 @@ func fromProjectConfiguration(projectConfig *ProjectConfiguration, fs afero.Fs)

var buildContext *runtime.RuntimeBuildContext

otherEntryPointFiles := lo.Filter(files, func(file string, index int) bool {
return file != f
})

Check warning on line 314 in pkg/project/project.go

View check run for this annotation

Codecov / codecov/patch

pkg/project/project.go#L312-L314

Added lines #L312 - L314 were not covered by tests

if serviceSpec.Runtime != "" {
// We have a custom runtime
customRuntime, ok := projectConfig.Runtimes[serviceSpec.Runtime]
Expand All @@ -320,8 +324,7 @@ func fromProjectConfiguration(projectConfig *ProjectConfiguration, fs afero.Fs)
relativeServiceEntrypointPath,
customRuntime.Dockerfile,
customRuntime.Args,
// TODO: Get other entrypoint files as ignores
[]string{},
otherEntryPointFiles,

Check warning on line 327 in pkg/project/project.go

View check run for this annotation

Codecov / codecov/patch

pkg/project/project.go#L327

Added line #L327 was not covered by tests
fs,
)
if err != nil {
Expand All @@ -332,8 +335,7 @@ func fromProjectConfiguration(projectConfig *ProjectConfiguration, fs afero.Fs)
relativeServiceEntrypointPath,
"",
map[string]string{},
// TODO: Get other entrypoint files as ignores
[]string{},
otherEntryPointFiles,

Check warning on line 338 in pkg/project/project.go

View check run for this annotation

Codecov / codecov/patch

pkg/project/project.go#L338

Added line #L338 was not covered by tests
fs,
)
if err != nil {
Expand Down

0 comments on commit f480f08

Please sign in to comment.