Skip to content

Windows not recognized properly #1

@UlrichAlt

Description

@UlrichAlt

Look at this example in node_shims/path.dart

_PathExports _factory(){
var exports = new _PathExports();

var isWindows = Platform.operatingSystem == 'win32';

if (isWindows) {
// Regex to split a windows path into three parts: [*, device, slash,
// tail] windows-only

However, Platform.operatingSystem returns "windows" in my case instead of win32 which makes the whole thing believe to run on linux and therefore fails the whole build system for templates.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions