Introduce ability to resolve all paths to absolute ones #14

Closed
opened 2025-07-06 01:02:47 +00:00 by vaibhav · 2 comments
Owner

Right now we are accepting full path at every place that we are accepting any kind of file path. We need to be able to handle relative paths properly too.

Right now we are accepting full path at every place that we are accepting any kind of file path. We need to be able to handle relative paths properly too.
Author
Owner

In the codebase, in the cmd/new.go file, there is this code:

	    // TODO: Verify before applying this
		// chamberPath, err = filepath.Abs(chamberpathVal)
		// if err != nil {
		// 	fmt.Println("E#2HURBW: Could not convert input to absolute path")
		//  return
		// }

We can start there (I had never tested this and got it from the internet somewhere) to resolve paths to full paths.

In the codebase, in the `cmd/new.go` file, there is this code: ```go // TODO: Verify before applying this // chamberPath, err = filepath.Abs(chamberpathVal) // if err != nil { // fmt.Println("E#2HURBW: Could not convert input to absolute path") // return // } ``` We can start there (I had never tested this and got it from the internet somewhere) to resolve paths to full paths.
vaibhav self-assigned this 2025-08-08 11:47:07 +00:00
vaibhav removed their assignment 2025-08-08 11:47:52 +00:00
Member

It is resolved and merged in main

It is resolved and merged in main
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
techrail/chamber#14
No description provided.