Skip to content
This repository was archived by the owner on Mar 3, 2025. It is now read-only.
This repository was archived by the owner on Mar 3, 2025. It is now read-only.

Windows OS/module mode: Can't extract module info from tokens #80

@fmazoyer

Description

@fmazoyer

On Windows OS, I am getting the following error:

   Can't extract module info from tokens: [a/b/c, =>, .., .., .., .., ..,module1-directory-1.0.0, src, a, b, c] `

Problem can easily be reproduced by slightly modifying JUnit: GoModTest.java:testComplex4, replacing ../goodbye with ..\goodbye.

  1. module2 depends on module1:
    module2's go.mod in bin\.__deps__\module2-directory-1.0.0\src\d\e\f looks like:
module d/e/f
require a/b/c v1.0.0
replace a/b/c => ..\..\..\..\..\module1-directory-1.0.0\src\a\b\c
go 1.15
  1. Question: Is this ok to have backslashes here, even though we are on Windows OS?

If not, it looks like backslash character is not taken as a token separator?:

If you would agree that there is a problem, indeed, I tested a simple modification in TOKENIZER, by adding backslash as a separator, and my build is working again.
I can push it for review.

If not, I will let it up to you :-)

Thanks a lot for this great tool!

Kind regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions