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

localStorage API errors for compiled deno binaries #10693

Open
grempe opened this issue May 19, 2021 · 9 comments · May be fixed by #21489
Open

localStorage API errors for compiled deno binaries #10693

grempe opened this issue May 19, 2021 · 9 comments · May be fixed by #21489
Labels
compile related to the `deno compile` feature feat new feature (which has been agreed to/accepted)

Comments

@grempe
Copy link

grempe commented May 19, 2021

I was excited to try out the new localStorage API (which seems like a great and natural fit for CLI's) and I found that it throws an error for any compiled output. This was run with Deno 1.10.2 on macOS.

welcome.ts

console.log("Welcome to Deno!")

localStorage.setItem("foo", "bar")
console.log(localStorage.getItem("foo"))
console.log(localStorage.length)

output : uncompiled

❯ deno run --location=https://127.0.0.1 welcome.ts
Welcome to Deno!
bar
1

output : compiled

❯ deno compile --unstable --location=https://127.0.0.1 welcome.ts
Check file:///private/tmp/cli/welcome.ts
Bundle file:///private/tmp/cli/welcome.ts
Compile file:///private/tmp/cli/welcome.ts
Emit welcome

❯ ./welcome
Welcome to Deno!
error: NotSupported: LocalStorage is not supported in this context.
    at DOMExceptionNotSupportedError (deno:runtime/js/99_main.js:199:16)
    at unwrapOpResult (deno:core/core.js:106:13)
    at Object.opSync (deno:core/core.js:120:12)
    at createStorage (deno:extensions/webstorage/01_webstorage.js:93:22)
    at localStorage (deno:extensions/webstorage/01_webstorage.js:178:24)
    at file://$deno$/bundle.js:2:1

The error message seems to originate from here:

"LocalStorage is not supported in this context.",

@crowlKats
Copy link
Member

The problem is that we currently lack DENO_DIR in compiled context, which is required to store the SQLite file backing localStorage. This is definitively something wanted, but was omitted for the first iteration

@ry ry added the bug Something isn't working correctly label May 19, 2021
@kitsonk kitsonk added the compile related to the `deno compile` feature label May 19, 2021
@imjamesb
Copy link
Contributor

imjamesb commented May 19, 2021

@ry Wasn't this the intended behaviour, making it not a bug?

let path = state.try_borrow::<LocationDataDir>().ok_or_else(|| {
DomExceptionNotSupportedError::new(
"LocalStorage is not supported in this context.",
)
})?;

@kitsonk
Copy link
Contributor

kitsonk commented May 19, 2021

bug/feature, minor distinction, but I changed the label

@kitsonk kitsonk added feat new feature (which has been agreed to/accepted) and removed bug Something isn't working correctly labels May 19, 2021
@grempe
Copy link
Author

grempe commented May 19, 2021

Thanks. I would suggest that the docs page reflect this (current) limitation.

Does it have to write to DENO_DIR? What about using arch specific default locations?

e.g.

https://deno.land/x/config_dir@v0.1.1/mod.ts

@wiremoons
Copy link

wiremoons commented Oct 30, 2021

Out of interest - I don't understand the logic of this issue being labelled as a feature and not a bug?

The reason for thinking it is in fact a bug is that Deno is 'broken' functionality wise for any script that uses LocalStorage and wants to use the compile option. Both are great existing capabilities in Deno, so the fact they don't work together correctly is not intended behaviour - or is it?

I don't think any developer would (or should) purposefully break a program capability, and then label the outcome a feature?

But whichever is fine - I guess my real interest is when it might be fixed or the feature added :)

Don't take my questions the wrong way please - I know there are lots of other higher priority issues, so I am not complaining, just checking out of interest. Also it is quite an amusing label switch from a user perspective for the reason outlined above :)

@crowlKats
Copy link
Member

The reason this is a feature is because this requires adding some sort of caching capability to compiled as localStorage requires to store a sqlite file on the disk. its not a bug as this was fairly intentional when localStorage was merged, and as such isnt unexpected behaviour

amazingmarvin pushed a commit to amazingmarvin/marvin-cli that referenced this issue Mar 19, 2022
It doesn't work with --compile and it doesn't seem that the deno team is
eager to fix this. See denoland/deno#10693.
@pitkes22
Copy link

Please mention this in the documentation page of Compiling Executables.

jespertheend added a commit to jespertheend/deno-manual that referenced this issue Sep 9, 2022
littledivy pushed a commit to denoland/manual that referenced this issue Sep 9, 2022
kwhinnery added a commit to denoland/docs that referenced this issue Sep 18, 2023
* docs(testing): Fix misleading typo (#345)

* Add Callbacks portion to FFI API manual (#339)

* docs(example): added / linked #!shebang example (#347)

* fix: link not pointing to the right location (#349)

* update the size of the zip (#351)

* Update permission revoke behavior (#346)

* Add docs for createAssertSnapshot (#352)

* Add note about `importMap` option in config file (#333)

* Update note about configuration file auto-detection (#358)

* docs(getting_started): Add subsection for type-checking instructions (#357)

* Fix Introduction links on GitHub (#359)

* Fix typo (#361)

* fix: ignore if os isn’t windows (#362)

* fix type in vendor.md (#364)

* Remove duplicate section `Node built-in modules` (#365)

* Add "experimentalDecorators" and "moduleDetection" to ignored compiler options (#363)

* chore: updates for v1.24 (#366)

Co-authored-by: David Sherret <dsherret@gmail.com>

* fix: include shebang example in toc.json (#367)

* fix: update getting started link (#368)

* Update deno_bindgen docs to reflect repo move (#369)

* ci: suggest to format the code in the pull request (#373)

* docs: add missing dot (#375)

* docs(toc): expose profiling page (#376)

* chore: update runner versions in ci and docs (#377)

* fix: typo on TypeScript config page (#380)

* Fix `jsoc` typo (#382)

* chore: use consistent case and heading sizes everywhere (#372)

* add section for naming conventions (#343)

* chore: use irm instead of iwr -useb (#385)

* fix type in too.json (#387)

* feat: add script to generate search records (#390)

* Fix a typo (#391)

* chore: update copyright to 2022 (#395)

* fix: compatibility typo (#394)

* Mention unavailable Web Storage API in compiled executables (#397)

This was requested in denoland/deno#10693 (comment)

* Update manual based on FFI breaking change in v1.25.0 (#398)



Co-authored-by: duart38 <duartsnel@icloud.com>
Signed-off-by: David Greven <opensource@grevend.dev>

* document 'deno/task' request in lsp (#403)

* Automatic response body compression for streams (#404)

* docs: remove weird language suggestions from FFI page (#405)

* doc: add note about `enableProjectDiagnostics` option in VSCode (#402)

* Fix small typo (#407)

* docs(task_runner): `INIT_CWD` section (#416)

* deno task - add note about async commands (#420)

* Remove unstable warning about `deno task` (#421)

* docs: update document building_from_source (#417)

Co-authored-by: Jithil P Ponnan <MrJithil@users.noreply.github.com>

* Add `append: true` example for writing text (#419)

* Update comment to reflect that Deno has defaults (#418)

* chore: update setup_deno action version (#422)

* docs: document dev command (#424)

* Reorganize deno docs off rewrite (#400) (#425)

Signed-off-by: David Greven <opensource@grevend.dev>
Co-authored-by: Ren <yirenlu92@users.noreply.github.com>
Co-authored-by: David Greven <davidgreven@outlook.com>
Co-authored-by: duart38 <duartsnel@icloud.com>
Co-authored-by: sigmaSd <bedisnbiba@gmail.com>
Co-authored-by: Luca Casonato <hello@lcas.dev>
Co-authored-by: Kayla Washburn <mckayla@hey.com>
Co-authored-by: Lucas Santos <lhs.santoss@gmail.com>
Co-authored-by: Simon Hanna <33220646+simhnna@users.noreply.github.com>
Co-authored-by: David Sherret <dsherret@users.noreply.github.com>
Co-authored-by: nasa <htilcs1115@gmail.com>
Co-authored-by: Jithil P Ponnan <MrJithil@users.noreply.github.com>
Co-authored-by: josephrocca <1167575+josephrocca@users.noreply.github.com>
Co-authored-by: Jared Flatow <jflatow@gmail.com>
Co-authored-by: Yiren Lu <yirenlu@Yirens-MacBook-Pro.local>
Co-authored-by: Yiren Lu <yirenlu@Yirens-MBP.localdomain>
Co-authored-by: Yiren Lu <yirenlu@Yirens-MBP.lan>
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
Co-authored-by: crowlkats <crowlkats@toaxl.com>

* Fix imported name for `jsxImportSource` (#276)

* fix(typescript): update type-checking info (#379)

* Make general improvements (#427)

* Make general improvements

* Fmt the changes

* Flesh out some of the changes

* Combine Deno http server API pages

* Change the redirects

* Remove the redirect links from the node folder

* Edit spelling of npm modules

* fix broken link in references (#429)

* ci: add broken link check (#413)

Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>

* More changes (#428)

* 1.28 - npm specifier stabilization (#435)

* unstable is not needed for deno bench (#437)

* add npm compat how-to pages (#431)

* npm updates (#443)

* docs: Node.js package -> npm package (#441)

Co-authored-by: David Sherret <dsherret@users.noreply.github.com>

* fix: remove non-existent entries from ToC (#448)

* chore: fix broken links and move link checker workflow to schedule (#469)

The link checker has been failing in a number of PRs lately. I found one link was actually broken because it was moved within denoland/deno, while other links are a bit flaky: broken in CI but available when visited in a browser. Therefore, as a suggestion I have moved the link checker to a separate workflow that runs on a schedule daily. This way it does not get in the way of PRs.

* add npm @deno-types example (#447)

* update --allow-ffi docs (#484)

* Add `NPM_CONFIG_REGISTRY` to environment docs (#483)

Co-authored-by: David Sherret <dsherret@gmail.com>

* fix(typo): Fix typo in `how_to_with_npm/prisma` (#463)

* chore: update Atom paragraph (#473)

* Delete unreferenced variable (#472)

* fix. link correctly to std in introduction.md (#460)

* Fix small typing mistake (#462)

* Remove typo in file_server.md (#461)

* Update link to `serde_v8` project (#455)

* fix: update Actions cache paragraph && remove deno bench unstable flags (#453)

* chore: update coc-deno setup (#446)

* Fix typo on page link description (#451)

* fix: typo in the link of lib.deno.ns.d.ts (#487)

* Remove the deprecated 'copy' import from cat.ts example (#488)

* fix spelling for JSX (#440)

* fix: version url update builtin_apis.md (#489)

* Update fetch data example (#491)

* Deno 1.29 changes (#490)

* Deployment guide for Kinsta Application Hosting (#492)

Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>

* fix link to /api page (#439)

* Rewrite some sections of Connecting Databases for readability (take 2) (#494)

* fix: update first steps server example #454 (#493)

* Update example handler to match walk through steps (#476)

This change was exactly the same change as denoland/manual#493. I'm landing this for recording purpose

* fix import error in example (react.md) (#445)

* Note the limited scope for Import Maps (#499)

* Add `.ts` info to hashbang.md (#497)

* update cheatsheet (add ts-node) (#498)

* Don't block with await p.status() called first (#501)

* fix: add redirect from npm_nodejs/cdns to node/cdns (#503)

* add page for webgpu (#465)

* chore: update link check settings (#495)

* Add noErrorTruncation compiler option. (#502)

* fix: typos in benchmarker (#504)

* fix: lint's `--rules-exclude` now has higher precedence over `--rules-include` (#506)

* VSCode: add debugger paragraph (#507)

* Add note about --inspect-wait flag (#508)

* fix: add shebang redirect to hashbang (#510)

* Add `@types/express` to express example (#514)

* Fix an invalid command line option (#511)

* Use Web Stream APIs on examples (#509)

* Add Fig as an autocomplete method (#370)

* chore: add unstable flag (#519)

* feat: mention V in ffi docs (#518)

* Update the section on upgrading the WPT submodule (#301)

* Add node: specifiers (#524)

* Add fmt no semicolons (#526)

* Add information about import maps in configuration file (#525)

* Changes for Deno v1.30 (#528)

* Deno.env.has and query permission apis (#529)

* docs: update std/dotenv usage (#541)

Co-authored-by: Yousef M. El-Gohary <30435916+yousefelgoharyx@users.noreply.github.com>

* docs: add 'deno eval' to cheatsheet

* docs: fix syntax in node specifier example (#533)

Co-authored-by: optionsx <jffjf6978@gmail.com>
Co-authored-by: optionx <a.man06662@gmail.com>

* docs: fix neovim lsp setup (#536)

* docs: fix DenoDB spelling (#542)

* docs: make HTTP server walk through consistent with code (#544)

* fix: outdated cloudflare deployment guide (#546)

* docs: fix configuration file page grammar (#547)

* fix: typo (BenchDefinition) (#550)

* Remove cjs and cts from test/bench glob documentation (#549)

* docs(hashbang.md): don't use sudo for chmod (#551)

Presumably the user owns the script in question.

* docs(examples/file_server): fix bug after file miss (#552)

* docs(advanced/continuous_integration): fix lockfile name (#554)

* docs: fix permissions.md grammatical errors (#557)

* fix: unused variable warning in first steps (#559)

* chore: update contributing instructions (#560)

* chore: update first steps doc (#561)

* deprecate deno bundle (#555)

* Combine import_maps files (#562)

* Updates for 1.31 (#563)

* Add DENO_NO_PACKAGE_JSON (#567)

* Update FFI manual after Deno 1.31 (#569)

* Update cdns.md (#565)

* Update manual (#578)

* remove duplicate deno compile (#576)

* fix(manual): adds deno_emit and rollup to the list of 'deno bundle' alternatives, and embeds markdown links to those projects (#577)

* Add structs to FFI API manual (#579)

* docs: fix bold style for allow-ffi permission (#580)

* chore: fix year (#585)

* chore: update docs to be a bit more modern (#584)

* Fix file cat example (#591)

* typo fix `debugget` -> `debugger` (#592)

* v1.32 changes (#593)

Co-authored-by: David Sherret <dsherret@gmail.com>

* Fix failing CI due to web gpu (#595)

* Add section on `@types/node` to node/npm_specifiers (#594)

* remove WebGPU docs (#596)

* feat: add algolia update ci (#598)

* Added --inspect-wait to getting started docs (#600)

* docs(contributing): typo (#599)

* fix(algolia): use correct id for doc path (#604)

* fix: update example of net permission for workers (#601)

* docs(installation): add MacPorts install info (#602)

* docs: update compiler.md (#603)

* fix(typo): fix typo in `manual/basics/react.md` (#605)

* Fix scopes key in import map docs (#607)

* Add `DENO_NO_UPDATE_CHECK` (#611)

* First section of KV docs (#609)

* Clean up wording in hashbang example (#614)

- Clear unnatural wording in Overview
- Remove outdated pending hashbang issue
- Change Permissions from Linux -> Unix (Mac/Linux/Friends)

* fix: broken link to fast-check (#617)

* installation: document install instruction using asdf (#615)

* profiling: fix typo --async-stack-traces (#616)

* fix: doc link (#619)

* fix(node/npm_specifiers): tell the user how to run the example (#622)

Signed-off-by: Levente Kurusa <lkurusa@kernelstuff.org>

* kv edits (#623)

* add allowed values for allow-sys flag (#621)

* Remove references to deprecated bundle subcommand (fixes #574) (#620)

* docs(style_guide): update standard library style guide (#625)

* Add `unset` to task runner (#628)

* KV docs update (#629)

* Flatten config files (#631)

* docs: fix error in kv transaction example (#632)

* fix link to `std/flags` (#634)

* Update subprocess example (Deno.Command) (#633)

* clarify kv.list prefix behaviour (#636)

* Fix typos (#642)

* fix: remove await from kv.list (#638)

* Make quotes consistent (#644)

* Make quotes consistent

* ci

* Update vue.md (#645)

* fix: replace comma delimiter with a semicolon for DENO_AUTH_TOKENS (#648)

* Add kv examples (#647)

* Add esm.sh to Deno Friendly CDNs (#649)

* fix: remove pins from import-map.json (#652)

* Document --node-modules-dir=false (#656)

* deno task - Glob expansion (#658)

* Config - Add nodeModulesDir (#659)

* Glob support in configuration file (#663)

* Remove `deno compile` and `vendor` as unsupported for npm specifiers (#660)

* Fix typo in secondary indexes. (#651)

* ci: unpin denoland/setup-deno (#668)

* chore: update denoland/setup-deno (#669)

* Remove unnecessary spacing in `deno-dom` doc (#664)

* fix: Add 'semiColons' to 'fmt' example (#666)

* Add install instruction using `winget` (#665)

* Update first_steps.md (#672)

* Change example URL in first_steps.md (#675)

* Remove "Troubleshooting" section from standard_library.md (#676)

I think the problem is completely gone, now that deno doesn't raise error for files in dependencies?

At the very least, the given example no longer raises an error for me.

* Add WebWorkers in the "Unavailable in executables" section (#678)

* docs: add "Contributing to Fresh" details (#674)

* docs: Puppeteer installations instructions for contributing to Fresh (#680)

* docs: fix typo in submitting PR to Fresh section (#681)

* chore: Contributing overview tweaks (#683)

* chore: Contributing overview tweaks

Fix a few minor grammar nits. Bubble Fresh higher in the repository
listing.

* fix: run deno fmt

* Update serde_v8 link (#686)

* Remove left-over subsections about missing @types/node (#687)

* `deno compile` - Add note about dynamic imports (#684)

* Indicate that import mappings should be in deno.json (#673)

* Add missing apostrophes and refactor a couple of sentences (#685)

* Update documentation for HTTP server APIs (#691)

* Minor typo and grammar fixes on Private Modules page (#690)

* remove dotland link (#693)

* docs: add Deno KV OAuth example for KV (#692)

* add Deno SaaSKit to KV examples (#694)

* Using Winget to Upgrade (#696)

* Style guide - Remove section on not using the word “library” (#697)

It’s useful to have separate words for these concepts.

* Prevent whole filesystem read exploit (#698)

* v1.36 updates (#702)

Co-authored-by: David Sherret <dsherret@users.noreply.github.com>

* Add section on __runtime_js_sources (#704)

* Fix typo in `basics/permissions.md` (#703)

* Improved prose in contributing.md (#705)

* docs: fix typos and add CI check (#707)

* reflect std/testing/asserts to std/asserts move in manual (#708)

* docs: add ULIDs section to KV docs (#706)

* docs: update Fresh contributing section (#709)

* docs: "ULIDs" section tweaks (#713)

* web: Add note about Event.timeStamp being 0 (#718)

* Add a protoc install step to `building_from_source` (#717)

* docs(operations): Make range selector clearer (#711)

* docs: fix a missing period (#716)

* chore(CI): dependabot (#714)

* chore(deps): bump actions/checkout from 2 to 3 (#720)

* MVP migration doc (#719)

* mvp migration doc

* remove syntax highlighting from code blocks to pass tests :(

* use relative path links

* fix: update hello world program url (#722)

* fix: pin std/examples to v0.198.0 (#723)

* Update footer linked content (#721)

* update

* fix link

* fix link

* fix link

* Update introduction.md

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>

* Update runtime/web_platform_apis.md

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>

* Update runtime/web_platform_apis.md

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>

* link to mdn

* edits

* Empty-Commit

---------

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>

* Update builtin_apis.md (#724)

Replaced deprecated "Deno.run" with "Deno.Command".

* chore: clean up the building_from_source.md (#725)

* chore: clean up the building_from_source.md

* Update references/contributing/building_from_source.md

Co-authored-by: Luca Casonato <hello@lcas.dev>

* Update references/contributing/building_from_source.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: Luca Casonato <hello@lcas.dev>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* chore: fmt (#727)

* Update setup_your_environment.md (#715)

* chore(deps): bump actions/checkout from 3 to 4 (#728)

* chore: update kv manual (#729)

* docs: update https example code (#730)

* Fix small typo on first_steps.md (#732)

* Update http_server.md to use Deno.serve (#734)

* Add Node.js API compatibility list (#733)

Co-authored-by: Marvin Hagemeister <marvin@deno.com>
Co-authored-by: Marvin Hagemeister <marvinhagemeister50@gmail.com>
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
Co-authored-by: Kevin Whinnery <kevin.whinnery@gmail.com>

* Fix list of Node compat (#735)

* docs: add key expiration (#731)

* docs: add key expiration

* fix typeck

* add acknowledgment in README

---------

Signed-off-by: David Greven <opensource@grevend.dev>
Signed-off-by: Levente Kurusa <lkurusa@kernelstuff.org>
Co-authored-by: Kev Rowe <kevrowe@users.noreply.github.com>
Co-authored-by: Aapo Alasuutari <aapo.alasuutari@gmail.com>
Co-authored-by: トトも <85485984+ElectronicsArchiver@users.noreply.github.com>
Co-authored-by: Nikita Krasnov <nikita.nikita.krasnov@gmail.com>
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
Co-authored-by: Nayeem Rahman <nayeemrmn99@gmail.com>
Co-authored-by: Ben Heidemann <56122437+bcheidemann@users.noreply.github.com>
Co-authored-by: Kid <44045911+kidonng@users.noreply.github.com>
Co-authored-by: Lucas Cavalcante <lucascpcavalcante@gmail.com>
Co-authored-by: Harsh Mangalam <57381638+harshmangalam@users.noreply.github.com>
Co-authored-by: Max Duval <hi@mxdvl.com>
Co-authored-by: d2weber <29163905+d2weber@users.noreply.github.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: David Sherret <dsherret@gmail.com>
Co-authored-by: Geert-Jan Zwiers <geertjanzwiers@protonmail.com>
Co-authored-by: Jamie Kyle <me@thejameskyle.com>
Co-authored-by: ayame113 <40050810+ayame113@users.noreply.github.com>
Co-authored-by: Cupid Valentine <53572196+valcosmos@users.noreply.github.com>
Co-authored-by: ahuigo <1781999+ahuigo@users.noreply.github.com>
Co-authored-by: Berserk <liubolovelife@gmail.com>
Co-authored-by: John Spurlock <john.spurlock@gmail.com>
Co-authored-by: Tim Reichen <timreichen@users.noreply.github.com>
Co-authored-by: 迷渡 <justjavac@gmail.com>
Co-authored-by: Vincent <v.vdyck@gmail.com>
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
Co-authored-by: Sofya Tuymedova <stuymedova@gmail.com>
Co-authored-by: Grachev Mikhail <work@mgrachev.com>
Co-authored-by: Brenley Dueck <brenleydueck@gmail.com>
Co-authored-by: Jesper van den Ende <jespertheend@users.noreply.github.com>
Co-authored-by: David Greven <davidgreven@outlook.com>
Co-authored-by: duart38 <duartsnel@icloud.com>
Co-authored-by: sigmaSd <bedisnbiba@gmail.com>
Co-authored-by: Luca Casonato <hello@lcas.dev>
Co-authored-by: Kayla Washburn <mckayla@hey.com>
Co-authored-by: Lucas Santos <lhs.santoss@gmail.com>
Co-authored-by: Simon Hanna <33220646+simhnna@users.noreply.github.com>
Co-authored-by: David Sherret <dsherret@users.noreply.github.com>
Co-authored-by: nasa <htilcs1115@gmail.com>
Co-authored-by: Jithil P Ponnan <MrJithil@users.noreply.github.com>
Co-authored-by: josephrocca <1167575+josephrocca@users.noreply.github.com>
Co-authored-by: Jared Flatow <jflatow@gmail.com>
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
Co-authored-by: Ren <yirenlu92@users.noreply.github.com>
Co-authored-by: Yiren Lu <yirenlu@Yirens-MacBook-Pro.local>
Co-authored-by: Yiren Lu <yirenlu@Yirens-MBP.localdomain>
Co-authored-by: Yiren Lu <yirenlu@Yirens-MBP.lan>
Co-authored-by: crowlkats <crowlkats@toaxl.com>
Co-authored-by: Jed Schmidt <where@jed.is>
Co-authored-by: Jesse Jackson <jsejcksn@users.noreply.github.com>
Co-authored-by: Pranev <psi@innocent.com>
Co-authored-by: Andy Jiang <andyjiang@gmail.com>
Co-authored-by: idanran <96647698+idanran@users.noreply.github.com>
Co-authored-by: Nick Tomlin <NickTomlin@users.noreply.github.com>
Co-authored-by: Grégory Houllier <gregory.houllier@gmail.com>
Co-authored-by: Yuta Wada <29218439+ywada526@users.noreply.github.com>
Co-authored-by: Irian3x3 <irian3x3@gmail.com>
Co-authored-by: Daniel Bauer <73219982+danielbWork@users.noreply.github.com>
Co-authored-by: Christian Bromann <git@bromann.dev>
Co-authored-by: Heyward Fann <fannheyward@users.noreply.github.com>
Co-authored-by: Simon Rowe <wiremoons@users.noreply.github.com>
Co-authored-by: Laith Shadeed <laith.shadeed@gmail.com>
Co-authored-by: Adam Wilkinson <adwilk@users.noreply.github.com>
Co-authored-by: iugo <iugogogo@gmail.com>
Co-authored-by: Maciek Palmowski <m.palmowski@freshpixels.pl>
Co-authored-by: nate contino <ncontino@u.rochester.edu>
Co-authored-by: araiu <96004532+araiu@users.noreply.github.com>
Co-authored-by: jremi <jeremy.bursky@gmail.com>
Co-authored-by: rosald <35028438+rosald@users.noreply.github.com>
Co-authored-by: Cody Casterline <cody.casterline@gmail.com>
Co-authored-by: FrankReh <FrankReh@users.noreply.github.com>
Co-authored-by: i-api <87678394+i-api@users.noreply.github.com>
Co-authored-by: guest271314 <guest271314@gmail.com>
Co-authored-by: Mike Mulchrone <mtmulch0191@outlook.com>
Co-authored-by: Lino Le Van <11367844+lino-levan@users.noreply.github.com>
Co-authored-by: Yusuke Tanaka <yusuktan@maguro.dev>
Co-authored-by: Zsolt Gulyas <zsolt.gulyas@outlook.com>
Co-authored-by: nagatea3 <43901728+nagatea3@users.noreply.github.com>
Co-authored-by: David Brito <39559632+davbrito@users.noreply.github.com>
Co-authored-by: Brendan Falk <brendan@fig.io>
Co-authored-by: Jesus Andres <jesusandreszini14@gmail.com>
Co-authored-by: Ted Stoychev <tedstoychev@gmail.com>
Co-authored-by: Andreu Botella <andreu@andreubotella.com>
Co-authored-by: Yousef M. El-Gohary <30435916+yousefelgoharyx@users.noreply.github.com>
Co-authored-by: Roj <rojserbest@gmail.com>
Co-authored-by: optionsx <jffjf6978@gmail.com>
Co-authored-by: optionx <a.man06662@gmail.com>
Co-authored-by: daalfox <123469030+daalfox@users.noreply.github.com>
Co-authored-by: duffn <3457341+duffn@users.noreply.github.com>
Co-authored-by: Emma <38498590+E-Randz@users.noreply.github.com>
Co-authored-by: Dale Nguyen <dungnq@itbox4vn.com>
Co-authored-by: Bryce Dorn <3171252+brycedorn@users.noreply.github.com>
Co-authored-by: Frank Dana <ferdnyc@gmail.com>
Co-authored-by: Avindra Goolcharan <aavindraa@gmail.com>
Co-authored-by: scarf <greenscarf005@gmail.com>
Co-authored-by: tnfAngel <57068341+tnfAngel@users.noreply.github.com>
Co-authored-by: Heitor Tashiro Sergent <heitortsergent@gmail.com>
Co-authored-by: X <i@jex.me>
Co-authored-by: sean watters <sean@watters.io>
Co-authored-by: Anton Bortnikov <toha1100@gmail.com>
Co-authored-by: Mateo Presa Castro <mateopresacastro@gmail.com>
Co-authored-by: Matej Urbas <matej.urbas@gmail.com>
Co-authored-by: Santiago Aguilar Hernández <santiago.aguilar.821@gmail.com>
Co-authored-by: 滑威 <rottenpen@outlook.com>
Co-authored-by: Felipe Hummel <21449+felipehummel@users.noreply.github.com>
Co-authored-by: Herby Gillot <herby.gillot@gmail.com>
Co-authored-by: Jon Basniak <740416+gm112@users.noreply.github.com>
Co-authored-by: Igor Kowalczyk <majonezexe@protonmail.com>
Co-authored-by: Tristan F <LeoDog896@hotmail.com>
Co-authored-by: Deniz <denizdogan@users.noreply.github.com>
Co-authored-by: Ian Létourneau <letourneau.ian@gmail.com>
Co-authored-by: Re Tian <745752067@qq.com>
Co-authored-by: Levente Kurusa <lkurusa@kernelstuff.org>
Co-authored-by: Omar Othman <omar.othman@live.com>
Co-authored-by: vwkd <33468089+vwkd@users.noreply.github.com>
Co-authored-by: Sylvain Cau <10268458+sylc@users.noreply.github.com>
Co-authored-by: Roj <ez@roj.im>
Co-authored-by: Matt Williams <71104656+ThatJSGuy@users.noreply.github.com>
Co-authored-by: Brian Knight <776994+brianknight10@users.noreply.github.com>
Co-authored-by: Sergio Serrano <35855882+sdserranog@users.noreply.github.com>
Co-authored-by: Ayush C <info@ayushmanchhabra.com>
Co-authored-by: Jacob Avery <42455053+JakeAve@users.noreply.github.com>
Co-authored-by: AmRo <virtualemailbox045@gmail.com>
Co-authored-by: Olivier FAURE <couteaubleu@gmail.com>
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
Co-authored-by: Ryan Betts <ryan.betts@deno.com>
Co-authored-by: Martin Fischer <martin@push-f.com>
Co-authored-by: Josh Collinsworth <josh.collinsworth@shopify.com>
Co-authored-by: inuneko <52757302+u-yas@users.noreply.github.com>
Co-authored-by: CoolPlayLin <coolplaylin@qq.com>
Co-authored-by: David Junger <tffy@free.fr>
Co-authored-by: hugoalh <32359235+hugoalh@users.noreply.github.com>
Co-authored-by: Gurinder Singh <frederick.the.fool@gmail.com>
Co-authored-by: Andrin Heusser <andrinheusser@gmail.com>
Co-authored-by: Heyang Zhou <zhy20000919@hotmail.com>
Co-authored-by: Jan Piotrowski <piotrowski+github@gmail.com>
Co-authored-by: J <124119483+escwxyz@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Koen Verheyen <verheyen.koen@gmail.com>
Co-authored-by: Matt Mastracci <matthew@mastracci.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Ryan Rawlings <rjrawlings@gmail.com>
Co-authored-by: Igor Zinkovsky <igor@deno.com>
Co-authored-by: champ <champion.ge@gmail.com>
Co-authored-by: Jirffey Gabuya <boyhimas@gmail.com>
Co-authored-by: Tine Jozelj <tine@tjo.space>
Co-authored-by: Marvin Hagemeister <marvin@deno.com>
Co-authored-by: Marvin Hagemeister <marvinhagemeister50@gmail.com>
@maekoos
Copy link

maekoos commented Dec 7, 2023

I'm interested in getting this to work. Would it be a bad idea to require the user to supply the origin_data_folder_path manually during compilation? Maybe by using a flag like --origin-data=./data?

@libewa
Copy link

libewa commented Jan 22, 2024

Maybe, at least on Linux/macOS, the data directory could be $XDG_DATA_HOME/deno/appname/, $HOME/.local/share/deno/appname/ (which is the same folder by default) or something like that.
Windows provides a clear solution in the form of AppData folders (and all applications that save config data in Documents are annoying).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compile related to the `deno compile` feature feat new feature (which has been agreed to/accepted)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants