mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-24 06:35:39 +00:00
Fix serve path failing to be absolute when given as a relative path
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# Rojo Change Log
|
# Rojo Change Log
|
||||||
|
|
||||||
## Current Master
|
## Current Master
|
||||||
* *No changes*
|
* Fixed `rojo serve` failing to correctly construct an absolute root path when passed as an argument
|
||||||
|
|
||||||
## 0.3.1
|
## 0.3.1
|
||||||
* Improved error reporting when invalid JSON is found in a `rojo.json` project
|
* Improved error reporting when invalid JSON is found in a `rojo.json` project
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ fn main() {
|
|||||||
let sub_matches = sub_matches.unwrap();
|
let sub_matches = sub_matches.unwrap();
|
||||||
|
|
||||||
let project_path = match sub_matches.value_of("PROJECT") {
|
let project_path = match sub_matches.value_of("PROJECT") {
|
||||||
Some(v) => PathBuf::from(v),
|
Some(v) => canonicalish(PathBuf::from(v)),
|
||||||
None => std::env::current_dir().unwrap(),
|
None => std::env::current_dir().unwrap(),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user