@@ -222,20 +222,20 @@ func findAgent(agentName string, haystack []codersdk.WorkspaceResource) (*coders
222
222
func writeBundle (src * support.Bundle ,dest * zip.Writer )error {
223
223
// We JSON-encode the following:
224
224
for k ,v := range map [string ]any {
225
- "deployment/buildinfo.json" :src .Deployment .BuildInfo ,
226
- "deployment/config.json" :src .Deployment .Config ,
227
- "deployment/experiments.json" :src .Deployment .Experiments ,
228
- "deployment/health.json" :src .Deployment .HealthReport ,
229
- "network/netcheck.json" :src .Network .Netcheck ,
230
- "workspace/workspace.json" :src .Workspace .Workspace ,
231
225
"agent/agent.json" :src .Agent .Agent ,
232
226
"agent/listening_ports.json" :src .Agent .ListeningPorts ,
233
227
"agent/manifest.json" :src .Agent .Manifest ,
234
228
"agent/peer_diagnostics.json" :src .Agent .PeerDiagnostics ,
235
229
"agent/ping_result.json" :src .Agent .PingResult ,
230
+ "deployment/buildinfo.json" :src .Deployment .BuildInfo ,
231
+ "deployment/config.json" :src .Deployment .Config ,
232
+ "deployment/experiments.json" :src .Deployment .Experiments ,
233
+ "deployment/health.json" :src .Deployment .HealthReport ,
234
+ "network/netcheck.json" :src .Network .Netcheck ,
235
+ "workspace/parameters.json" :src .Workspace .Parameters ,
236
236
"workspace/template.json" :src .Workspace .Template ,
237
237
"workspace/template_version.json" :src .Workspace .TemplateVersion ,
238
- "workspace/parameters .json" :src .Workspace .Parameters ,
238
+ "workspace/workspace .json" :src .Workspace .Workspace ,
239
239
} {
240
240
f ,err := dest .Create (k )
241
241
if err != nil {
@@ -255,17 +255,17 @@ func writeBundle(src *support.Bundle, dest *zip.Writer) error {
255
255
256
256
// The below we just write as we have them:
257
257
for k ,v := range map [string ]string {
258
- "network/coordinator_debug.html" :src .Network .CoordinatorDebug ,
259
- "network/tailnet_debug.html" :src .Network .TailnetDebug ,
260
- "workspace/build_logs.txt" :humanizeBuildLogs (src .Workspace .BuildLogs ),
258
+ "cli_logs.txt" :string (src .CLILogs ),
259
+ "logs.txt" :strings .Join (src .Logs ,"\n " ),
261
260
"agent/logs.txt" :string (src .Agent .Logs ),
262
261
"agent/agent_magicsock.html" :string (src .Agent .AgentMagicsockHTML ),
263
262
"agent/client_magicsock.html" :string (src .Agent .ClientMagicsockHTML ),
264
263
"agent/startup_logs.txt" :humanizeAgentLogs (src .Agent .StartupLogs ),
265
264
"agent/prometheus.txt" :string (src .Agent .Prometheus ),
265
+ "network/coordinator_debug.html" :src .Network .CoordinatorDebug ,
266
+ "network/tailnet_debug.html" :src .Network .TailnetDebug ,
267
+ "workspace/build_logs.txt" :humanizeBuildLogs (src .Workspace .BuildLogs ),
266
268
"workspace/template_file.zip" :string (templateVersionBytes ),
267
- "logs.txt" :strings .Join (src .Logs ,"\n " ),
268
- "cli_logs.txt" :string (src .CLILogs ),
269
269
} {
270
270
f ,err := dest .Create (k )
271
271
if err != nil {