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

[Question] Error one or more entries with a date in the future #797

Closed
BoykoAlex opened this issue Dec 12, 2022 · 4 comments
Closed

[Question] Error one or more entries with a date in the future #797

BoykoAlex opened this issue Dec 12, 2022 · 4 comments

Comments

@BoykoAlex
Copy link

While attempting to publish an extension I get the following error:

INFO  Publishing 'Pivotal.vscode-bosh v1.42.0'...
 ERROR  One or more entries have a modified date in the future.

Can you please explain a bit where this error is coming from? List some possible sources for this error?

@BoykoAlex
Copy link
Author

NVM :-)

@lionello
Copy link

lionello commented Jan 2, 2023

@BoykoAlex Could you add some more info as to what fixed the problem for you? The "NVM" isn't very helpful to others with the same problem.

@lionello
Copy link

lionello commented Jan 2, 2023

In my case, I had to add .envrc and .direnv/ to the .vscodeignore file.

First, I used vsce package to manual create the vsix file and upload it to the marketplace using the browser. Same error. Then, I changed the package file extension to .zip so I could inspect the contents with unzip. I saw a bunch of files in .direnv sub-folder, which are not needed. Once I updated the .vscodeignore file, vsce publish worked!

@BoykoAlex
Copy link
Author

@lionello yes indeed :-) My case was rather simple at the end. One of the maven jars that I used in my language server included in the vscode extension had last modified stamp from year 2121 which is far in the future. Therefore npm complained about the date in the future. I have switched this maven dependency scope to test scope where it really belongs and it fixed the issue for me.
The error was showing for me when i ran vsce package locally...

hall added a commit to hall/draw that referenced this issue Feb 4, 2023
Uploading to the VSCode Marketplace fails with the following error [^1]

   ERROR  One or more entries have a modified date in the future.

This is because nix sets the mtime to 1s after the epoch [^2] for
reproducibility. However, the underlying zip library converts this to
2098 [^3].

1: microsoft/vscode-vsce#797
2: https://github.com/NixOS/nix/blob/b574c70ccbc0c22fa3c5df12c6246a10eff1a5bf/src/libstore/local-store.cc#L542
3: thejoshwolfe/yazl#70
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants