Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
nil pointer
  • Loading branch information
k-anshul committed Apr 24, 2026
commit 0cec247790fcd7a1690809bcc70aaad738374cca
1 change: 1 addition & 0 deletions runtime/pkg/fileutil/fileutil_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ func TestFullExt(t *testing.T) {
{"/path/to/../file.tar.gz", ".tar.gz"},
{"./file.tar.gz", ".tar.gz"},
{"https://server.com/path/file.tar.gz", ".tar.gz"},
{".env", ".env"},
}
for _, tt := range variations {
t.Run(tt.Path, func(t *testing.T) {
Expand Down
6 changes: 4 additions & 2 deletions runtime/server/instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,6 @@ func (s *Server) ReloadConfig(ctx context.Context, req *runtimev1.ReloadConfigRe
if err != nil {
return nil, err
}
// the count and modified values will be updated here
return &runtimev1.ReloadConfigResponse{
VariablesCount: int32(count),
Modified: modified,
Expand Down Expand Up @@ -348,7 +347,10 @@ func (s *Server) pullEnv(ctx context.Context, instanceID string) (int, bool, err
if err != nil && !errors.Is(err, drivers.ErrNotAuthenticated) {
return 0, false, fmt.Errorf("failed to get project variables: %w", err)
}
cloudPerEnv := cfg.Variables
var cloudPerEnv map[string]map[string]string
if cfg != nil {
cloudPerEnv = cfg.Variables
}

// Parse local .env files
p, err := parser.Parse(ctx, repo, instanceID, inst.Environment, inst.OLAPConnector, false)
Expand Down
Loading