Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path resolve doesn't work properly #1230

Open
sgammon opened this issue Feb 23, 2025 · 0 comments
Open

Path resolve doesn't work properly #1230

sgammon opened this issue Feb 23, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@sgammon
Copy link
Member

sgammon commented Feb 23, 2025

Expected Behavior

(1) Run attached script
(2) Observe that it prints $pwd/.dev

Actual Behaviour

(1) Run attached script
(2) Observe that it prints $pwd/.dev/cool

Stacktrace

N/A

Steps To Reproduce

Script:

import { join, resolve } from "node:path";

const cwd = process.cwd()
const this_plus_dev = join(cwd, ".dev", "cool", "..")
const actually_just_dev = resolve(this_plus_dev)
console.log("path: ", actually_just_dev)

Environment Information

No response

Runtime

Native

Language

JavaScript

Example Application

No response

Version

1.0.0-alpha13

@sgammon sgammon added the bug Something isn't working label Feb 23, 2025
@sgammon sgammon added this to the Release R7: Beta 1 milestone Feb 23, 2025
@sgammon sgammon self-assigned this Feb 23, 2025
@sgammon sgammon added this to Elide Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant