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

feat: support windows binary build #45

Merged

Conversation

aquariuslt
Copy link
Contributor

@aquariuslt aquariuslt commented Mar 16, 2024

feature: support windows build

related Issues #44 #22

file changes

  • add an .bat script for exuecuting git clone, execute nmake build command, and copy built pg_query.lib pg_query.h to including lib dir
  • update binding.gyp, split prebuild_dependencis action to spec os. on windows we spec an action to run script/buildAddons.bat

references

I am new to build napi addons, so some compile options was copied from below ref issues, pls feel free to advice

  1. binding.gyp build options/compile options related link
    1.1. https://github.com/pganalyze/libpg_query?tab=readme-ov-file#installation
    1.2. Overriding default flags nodejs/node-gyp#26 (comment)

  2. nmake required Visual Studio Developer Command Prompt in the path env.
    which means users should run install script at Visual Studio Developer Command Prompt at the first time.

below is my local build log

gyp build log

$ npm run binary:build > build.log
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using [email protected]
node-pre-gyp info using [email protected] | win32 | x64
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info ok
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info find Python using Python version 3.12.2 found at "C:\Users\Jason\scoop\apps\python\current\python.exe"
gyp info find VS using VS2022 (17.9.34701.34) found at:
gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools"
gyp info find VS run with --verbose for detailed information
gyp info spawn C:\Users\Jason\scoop\apps\python\current\python.exe
gyp info spawn args [
gyp info spawn args 'C:\\Users\\Jason\\scoop\\persist\\nvm\\nodejs\\v18.19.1\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\Jason\\Repos\\Study\\libpg-query-node\\build\\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\Jason\\scoop\\persist\\nvm\\nodejs\\v18.19.1\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\Jason\\AppData\\Local\\node-gyp\\Cache\\18.19.1\\include\\node\\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\\Users\\Jason\\AppData\\Local\\node-gyp\\Cache\\18.19.1',
gyp info spawn args '-Dnode_gyp_dir=C:\\Users\\Jason\\scoop\\persist\\nvm\\nodejs\\v18.19.1\\node_modules\\npm\\node_modules\\node-gyp',
gyp info spawn args '-Dnode_lib_file=C:\\\\Users\\\\Jason\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\18.19.1\\\\<(target_arch)\\\\node.lib',
gyp info spawn args '-Dmodule_root_dir=C:\\Users\\Jason\\Repos\\Study\\libpg-query-node',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'C:\\Users\\Jason\\Repos\\Study\\libpg-query-node\\build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
←[37;40mgyp←[0m ←[32minfo←[0m ←[35mok←[0m
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\MSBuild.exe
gyp info spawn args [
gyp info spawn args 'build\\binding.sln',
gyp info spawn args '/clp:Verbosity=minimal',
gyp info spawn args '/nologo',
gyp info spawn args '/p:Configuration=Release;Platform=x64'
gyp info spawn args ]
gyp info ok
node-pre-gyp info package Binary staged at "build\stage\libpg-query-node\queryparser-v16.0.1-node-v108-win32-x64.tar.gz"
node-pre-gyp info ok

pg_query windows build log


> [email protected] binary:build
> node-pre-gyp rebuild package

[libpg-query] Removing "C:\Users\Jason\Repos\Study\libpg-query-node\build\Release"


  nothing.vcxproj -> C:\Users\Jason\Repos\Study\libpg-query-node\build\Release\\nothing.lib
  prebuild_dependencies
  Cloning into 'libpg_query'...
  Note: switching to '1ec38940e5c6f09a4c1d17a46d839a881c4f2db7'.
  
  You are in 'detached HEAD' state. You can look around, make experimental
  changes and commit them, and you can discard any commits you make in this
  state without impacting any branches by switching back to a branch.
  
  If you want to create a new branch to retain commits you create, you may
  do so (now or later) by using -c with the switch command. Example:
  
    git switch -c <new-branch-name>
  
  Or undo this operation with:
  
    git switch -
  
  Turn off this advice by setting config variable advice.detachedHead to false
  
  HEAD is now at 1ec3894 Release 16-5.1.0
  "please ensure you are running at Windows Developer Command Prompt environments"
  
  Microsoft (R) Program Maintenance Utility Version 14.39.33522.0
  Copyright (C) Microsoft Corporation.  All rights reserved.
  
  	del *.obj
  Could Not Find C:\Users\Jason\AppData\Local\Temp\tmpdir.libpg_query\libpg_query\*.obj
  	del pg_query.lib
  Could Not Find C:\Users\Jason\AppData\Local\Temp\tmpdir.libpg_query\libpg_query\pg_query.lib
  
  Microsoft (R) Program Maintenance Utility Version 14.39.33522.0
  Copyright (C) Microsoft Corporation.  All rights reserved.
  
  	del *.obj
  Could Not Find C:\Users\Jason\AppData\Local\Temp\tmpdir.libpg_query\libpg_query\*.obj
  	del pg_query.lib
  Could Not Find C:\Users\Jason\AppData\Local\Temp\tmpdir.libpg_query\libpg_query\pg_query.lib
  	cl -I. -I./vendor -I./src/postgres/include -I./src/include -I./src/postgres/include/port/win32 -I./src/postgres/include/port/win32_msvc /c src/*.c src/postgres/*.c vendor/protobuf-c/protobuf-c.c vendor/xxhash/xxhash.c protobuf/pg_query.pb-c.c
  Microsoft (R) C/C++ Optimizing Compiler Version 19.39.33522 for x64
  Copyright (C) Microsoft Corporation.  All rights reserved.
  
  pg_query.c
  pg_query_deparse.c
  pg_query_fingerprint.c
  pg_query_json_plpgsql.c
  pg_query_normalize.c
  pg_query_outfuncs_json.c
  pg_query_outfuncs_protobuf.c
  pg_query_parse.c
  pg_query_parse_plpgsql.c
  pg_query_readfuncs_protobuf.c
  pg_query_scan.c
  pg_query_split.c
  postgres_deparse.c
  src_backend_catalog_namespace.c
  src_backend_catalog_pg_proc.c
  src_backend_commands_define.c
  src_backend_nodes_bitmapset.c
  src_backend_nodes_copyfuncs.c
  src_backend_nodes_equalfuncs.c
  src_backend_nodes_extensible.c
  Generating Code...
C:\Users\Jason\AppData\Local\Temp\tmpdir.libpg_query\libpg_query\src\pg_query_readfuncs_protobuf.c(153): warning C4715: '_readNode': not all control paths return a value [C:\Users\Jason\Repos\Study\libpg-query-node\build\queryparser.vcxproj]
  Compiling...
  src_backend_nodes_list.c
  src_backend_nodes_makefuncs.c
  src_backend_nodes_nodeFuncs.c
  src_backend_nodes_nodes.c
  src_backend_nodes_value.c
  src_backend_parser_gram.c
  src_backend_parser_parser.c
  src_backend_parser_scan.c
  src_backend_parser_scansup.c
  src_backend_storage_ipc_ipc.c
  src_backend_tcop_postgres.c
  src_backend_utils_activity_pgstat_database.c
  src_backend_utils_adt_datum.c
  src_backend_utils_adt_expandeddatum.c
  src_backend_utils_adt_format_type.c
  src_backend_utils_adt_numutils.c
  src_backend_utils_adt_ruleutils.c
  src_backend_utils_error_assert.c
  src_backend_utils_error_elog.c
  src_backend_utils_fmgr_fmgr.c
  Generating Code...
  Compiling...
  src_backend_utils_init_globals.c
  src_backend_utils_mb_mbutils.c
  src_backend_utils_misc_guc_tables.c
  src_backend_utils_mmgr_alignedalloc.c
  src_backend_utils_mmgr_aset.c
  src_backend_utils_mmgr_generation.c
  src_backend_utils_mmgr_mcxt.c
  src_backend_utils_mmgr_slab.c
  src_common_encnames.c
  src_common_hashfn.c
  src_common_keywords.c
  src_common_kwlookup.c
  src_common_psprintf.c
  src_common_stringinfo.c
  src_common_wchar.c
  src_pl_plpgsql_src_pl_comp.c
  src_pl_plpgsql_src_pl_funcs.c
  src_pl_plpgsql_src_pl_gram.c
  src_pl_plpgsql_src_pl_handler.c
  src_pl_plpgsql_src_pl_scanner.c
  Generating Code...
  Compiling...
  src_port_pgstrcasecmp.c
  src_port_pg_bitutils.c
  src_port_qsort.c
  src_port_snprintf.c
  src_port_strerror.c
  src_port_strlcpy.c
  protobuf-c.c
  xxhash.c
  pg_query.pb-c.c
  Generating Code...
  	lib /OUT:pg_query.lib *.obj
  Microsoft (R) Library Manager Version 14.39.33522.0
  Copyright (C) Microsoft Corporation.  All rights reserved.
  
          1 file(s) copied.
          1 file(s) copied.
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): warning MSB8065: Custom build for item "..\binding.gyp" succeeded, but specified output "c:\users\jason\repos\study\libpg-query-node\build" has not been created. This may cause incremental build to work incorrectly. [C:\Users\Jason\Repos\Study\libpg-query-node\build\queryparser.vcxproj]
  addon.cc
  helpers.cc
  sync.cc
  async.cc
  win_delay_load_hook.cc
     Creating library C:\Users\Jason\Repos\Study\libpg-query-node\build\Release\queryparser.lib and object C:\Users\Jason\Repos\Study\libpg-query-node\build\Release\queryparser.exp
  Generating code
  Previous IPDB not found, fall back to full compilation.
  All 286 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
  Finished generating code
  queryparser.vcxproj -> C:\Users\Jason\Repos\Study\libpg-query-node\build\Release\\queryparser.node
packing Release\nothing.lib
packing Release\obj\queryparser\queryparser.node.recipe
packing Release\obj\queryparser\queryparser.tlog\CL.command.1.tlog
packing Release\obj\queryparser\queryparser.tlog\Cl.items.tlog
packing Release\obj\queryparser\queryparser.tlog\CL.read.1.tlog
packing Release\obj\queryparser\queryparser.tlog\CL.write.1.tlog
packing Release\obj\queryparser\queryparser.tlog\CustomBuild.command.1.tlog
packing Release\obj\queryparser\queryparser.tlog\CustomBuild.read.1.tlog
packing Release\obj\queryparser\queryparser.tlog\CustomBuild.write.1.tlog
packing Release\obj\queryparser\queryparser.tlog\link.command.1.tlog
packing Release\obj\queryparser\queryparser.tlog\link.read.1.tlog
packing Release\obj\queryparser\queryparser.tlog\link.secondary.1.tlog
packing Release\obj\queryparser\queryparser.tlog\link.write.1.tlog
packing Release\obj\queryparser\queryparser.tlog\queryparser.lastbuildstate
packing Release\obj\queryparser\src\addon.obj
packing Release\obj\queryparser\src\async.obj
packing Release\obj\queryparser\src\helpers.obj
packing Release\obj\queryparser\src\sync.obj
packing Release\obj\queryparser\win_delay_load_hook.obj
packing Release\queryparser.exp
packing Release\queryparser.iobj
packing Release\queryparser.ipdb
packing Release\queryparser.lib
packing Release\queryparser.node
packing Release\queryparser.pdb

"actions":[
{
"outputs": [
""
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this outputs field contains an empty string.
because empty content in outputs will let node-gyp skip the actions.

so it's a workaround keeping actions works.

@pyramation
Copy link
Collaborator

Thanks for the PR! Will review ASAP to get this merged!

@pyramation
Copy link
Collaborator

hey can somebody with a windows machine verify this? Or @aquariuslt can you send me a telegram message so we can meet and verify this together (pyramation) is my telegram

cc @karlhorky @benasher44 @tomquist @darora

@pyramation
Copy link
Collaborator

pyramation commented Mar 21, 2024

once this is merged, we should see how to get it working in the github workflow to get the full automation going: https://github.com/launchql/libpg-query-node/blob/16-latest/.github/workflows/npm-publish.yml

@karlhorky
Copy link
Contributor

karlhorky commented Mar 27, 2024

@pyramation thanks for the ping! Did you meet with @aquariuslt to verify this?

If not, @aquariuslt what are the steps that someone with a Windows machine could follow to test out this PR?

CCs

@aquariuslt
Copy link
Contributor Author

@pyramation thanks for the ping! Did you meet with @aquariuslt to verify this?

If not, @aquariuslt what are the steps that someone with a Windows machine could follow to test out this PR?

CCs

sorry for late reply. i will contact @pyramation today.

what are the steps that someone with a Windows machine could follow to test out this PR?

  1. using windows and installed msvc latest env
  2. checkout PRs and open repo at Windows Developer Command Prompt, this will ensure nmake command exists in path environment
  3. run npm i && npm run binary:build

@aquariuslt
Copy link
Contributor Author

hey can somebody with a windows machine verify this? Or @aquariuslt can you send me a telegram message so we can meet and verify this together (pyramation) is my telegram

cc @karlhorky @benasher44 @tomquist @darora

hi pyramtion, my telegram is zexylol (since my phone number zone +86 sometimes regarded as spam, my telegram can not direct message non-contact, you can send me a message if you need any help for testing PR)

@Davidihl
Copy link

Hi @aquariuslt,

I followed your 3 steps for testing out the PR

@pyramation thanks for the ping! Did you meet with @aquariuslt to verify this?
If not, @aquariuslt what are the steps that someone with a Windows machine could follow to test out this PR?
CCs

sorry for late reply. i will contact @pyramation today.

what are the steps that someone with a Windows machine could follow to test out this PR?

  1. using windows and installed msvc latest env
  2. checkout PRs and open repo at Windows Developer Command Prompt, this will ensure nmake command exists in path environment
  3. run npm i && npm run binary:build

the build process ran without an error on my side, please find the package attached
queryparser-v16.0.1-node-v115-win32-x64.tar.gz

@Davidihl
Copy link

Here is my console output:

D:\Dokumente\Github\libpg-query-node>npm run binary:build

> [email protected] binary:build
> node-pre-gyp rebuild package   

node-pre-gyp info it worked if it ends with ok    
node-pre-gyp info using [email protected]       
node-pre-gyp info using [email protected] | win32 | x64
[libpg-query] Removing "D:\Dokumente\Github\libpg-query-node\build\Release"
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info ok
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info find Python using Python version 3.11.4 found at "C:\Python311\python.exe"

gyp info find VS using VS2022 (17.9.34723.18) found at:
gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools"
gyp info find VS run with --verbose for detailed information
gyp info spawn C:\Python311\python.exe
gyp info spawn args [
gyp info spawn args 'C:\\Users\\david\\AppData\\Roaming\\nvm\\v20.10.0\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-I',
gyp info spawn args 'D:\\Dokumente\\Github\\libpg-query-node\\build\\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\david\\AppData\\Roaming\\nvm\\v20.10.0\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\david\\AppData\\Local\\node-gyp\\Cache\\20.10.0\\include\\node\\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\\Users\\david\\AppData\\Local\\node-gyp\\Cache\\20.10.0',
gyp info spawn args '-Dnode_gyp_dir=C:\\Users\\david\\AppData\\Roaming\\nvm\\v20.10.0\\node_modules\\npm\\node_modules\\node-gyp',
gyp info spawn args '-Dnode_lib_file=C:\\\\Users\\\\david\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\20.10.0\\\\<(target_arch)\\\\node.lib',
gyp info spawn args '-Dmodule_root_dir=D:\\Dokumente\\Github\\libpg-query-node',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'D:\\Dokumente\\Github\\libpg-query-node\\build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp info ok 
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\MSBuild.exe
gyp info spawn args [
gyp info spawn args 'build\\binding.sln',
gyp info spawn args '/clp:Verbosity=minimal',
gyp info spawn args '/nologo',
gyp info spawn args '/p:Configuration=Release;Platform=x64'
gyp info spawn args ]

  nothing.vcxproj -> D:\Dokumente\Github\libpg-query-node\build\Release\\nothing.lib
  prebuild_dependencies
  Cloning into 'libpg_query'...
  Note: switching to '1ec38940e5c6f09a4c1d17a46d839a881c4f2db7'.
  
  You are in 'detached HEAD' state. You can look around, make experimental 
  changes and commit them, and you can discard any commits you make in this
  state without impacting any branches by switching back to a branch.      
  
  If you want to create a new branch to retain commits you create, you may 
  do so (now or later) by using -c with the switch command. Example:       
  
    git switch -c <new-branch-name>
  
  Or undo this operation with:
  
    git switch -

  Turn off this advice by setting config variable advice.detachedHead to false

  HEAD is now at 1ec3894 Release 16-5.1.0
  "please ensure you are running at Windows Developer Command Prompt environments"

  Microsoft (R) Program Maintenance Utility, Version 14.39.33523.0
  Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.

        del *.obj
  C:\Users\david\AppData\Local\Temp\tmpdir.libpg_query\libpg_query\*.obj konnte nicht gefunden werden
        del pg_query.lib
  C:\Users\david\AppData\Local\Temp\tmpdir.libpg_query\libpg_query\pg_query.lib konnte nicht gefunden werden

  Microsoft (R) Program Maintenance Utility, Version 14.39.33523.0
  Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.

        del *.obj
  C:\Users\david\AppData\Local\Temp\tmpdir.libpg_query\libpg_query\*.obj konnte nicht gefunden werden
        del pg_query.lib
  C:\Users\david\AppData\Local\Temp\tmpdir.libpg_query\libpg_query\pg_query.lib konnte nicht gefunden werden
        cl -I. -I./vendor -I./src/postgres/include -I./src/include -I./src/postgres/include/port/win32 -I./src/postgres/include/port/win32_msvc /c src/*.c src/postgres/*.c 
   vendor/protobuf-c/protobuf-c.c vendor/xxhash/xxhash.c protobuf/pg_query.pb-c.c
  Microsoft (R) C/C++-Optimierungscompiler Version 19.39.33523 für x64
  Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.

  pg_query.c
  pg_query_deparse.c
  pg_query_fingerprint.c
  pg_query_json_plpgsql.c
  pg_query_normalize.c
  pg_query_outfuncs_json.c
  pg_query_outfuncs_protobuf.c
  pg_query_parse.c
  pg_query_parse_plpgsql.c
  pg_query_readfuncs_protobuf.c
  pg_query_scan.c
  pg_query_split.c
  postgres_deparse.c
  src_backend_catalog_namespace.c
  src_backend_catalog_pg_proc.c
  src_backend_commands_define.c
  src_backend_nodes_bitmapset.c
  src_backend_nodes_copyfuncs.c
  src_backend_nodes_equalfuncs.c
  src_backend_nodes_extensible.c
  Code wird generiert...
C:\Users\david\AppData\Local\Temp\tmpdir.libpg_query\libpg_query\src\pg_query_readfuncs_protobuf.c(153): warning C4715: "_readNode": Nicht alle Codepfade geben einen Wert 
zurück. [D:\Dokumente\Github\libpg-query-node\build\queryparser.vcxproj]
  Kompilieren...
  src_backend_nodes_list.c
  src_backend_nodes_makefuncs.c
  src_backend_nodes_nodeFuncs.c
  src_backend_nodes_nodes.c
  src_backend_nodes_value.c
  src_backend_parser_gram.c
  src_backend_parser_parser.c
  src_backend_parser_scan.c
  src_backend_parser_scansup.c
  src_backend_storage_ipc_ipc.c
  src_backend_tcop_postgres.c
  src_backend_utils_activity_pgstat_database.c
  src_backend_utils_adt_datum.c
  src_backend_utils_adt_expandeddatum.c
  src_backend_utils_adt_format_type.c
  src_backend_utils_adt_numutils.c
  src_backend_utils_adt_ruleutils.c
  src_backend_utils_error_assert.c
  src_backend_utils_error_elog.c
  src_backend_utils_fmgr_fmgr.c
  Code wird generiert...
  Kompilieren...
  src_backend_utils_init_globals.c
  src_backend_utils_mb_mbutils.c
  src_backend_utils_misc_guc_tables.c
  src_backend_utils_mmgr_alignedalloc.c
  src_backend_utils_mmgr_aset.c
  src_backend_utils_mmgr_generation.c
  src_backend_utils_mmgr_mcxt.c
  src_backend_utils_mmgr_slab.c
  src_common_encnames.c
  src_common_hashfn.c
  src_common_keywords.c
  src_common_kwlookup.c
  src_common_psprintf.c
  src_common_stringinfo.c
  src_common_wchar.c
  src_pl_plpgsql_src_pl_comp.c
  src_pl_plpgsql_src_pl_funcs.c
  src_pl_plpgsql_src_pl_gram.c
  src_pl_plpgsql_src_pl_handler.c
  src_pl_plpgsql_src_pl_scanner.c
  Code wird generiert...
  Kompilieren...
  src_port_pgstrcasecmp.c
  src_port_pg_bitutils.c
  src_port_qsort.c
  src_port_snprintf.c
  src_port_strerror.c
  src_port_strlcpy.c
  protobuf-c.c
  xxhash.c
  pg_query.pb-c.c
  Code wird generiert...
        lib /OUT:pg_query.lib *.obj
  Microsoft (R) Library Manager Version 14.39.33523.0
  Copyright (C) Microsoft Corporation.  All rights reserved.

          1 Datei(en) kopiert.
          1 Datei(en) kopiert.
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): warning MSB8065: Der benutzerdefinierte Build  
für das Element "..\binding.gyp" war erfolgreich, aber die angegebene Ausgabe "d:\dokumente\github\libpg-query-node\build" wurde nicht erstellt. Dies kann dazu führen, das 
s der inkrementelle Build nicht ordnungsgemäß funktioniert. [D:\Dokumente\Github\libpg-query-node\build\queryparser.vcxproj]
  addon.cc
  helpers.cc
  sync.cc
  async.cc
  win_delay_load_hook.cc
     Bibliothek "D:\Dokumente\Github\libpg-query-node\build\Release\queryparser.lib" und Objekt "D:\Dokumente\Github\libpg-query-node\build\Release\queryparser.exp" werden
   erstellt.
  Code wird generiert.
  Previous IPDB not found, fall back to full compilation.
  All 286 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
  Codegenerierung ist abgeschlossen.
  queryparser.vcxproj -> D:\Dokumente\Github\libpg-query-node\build\Release\\queryparser.node
gyp info ok 
packing Release\nothing.lib
packing Release\obj\queryparser\queryparser.node.recipe
packing Release\obj\queryparser\queryparser.tlog\CL.command.1.tlog
packing Release\obj\queryparser\queryparser.tlog\Cl.items.tlog
packing Release\obj\queryparser\queryparser.tlog\CL.read.1.tlog
packing Release\obj\queryparser\queryparser.tlog\CL.write.1.tlog
packing Release\obj\queryparser\queryparser.tlog\CustomBuild.command.1.tlog
packing Release\obj\queryparser\queryparser.tlog\CustomBuild.read.1.tlog
packing Release\obj\queryparser\queryparser.tlog\CustomBuild.write.1.tlog
packing Release\obj\queryparser\queryparser.tlog\link.command.1.tlog
packing Release\obj\queryparser\queryparser.tlog\link.read.1.tlog
packing Release\obj\queryparser\queryparser.tlog\link.secondary.1.tlog
packing Release\obj\queryparser\queryparser.tlog\link.write.1.tlog
packing Release\obj\queryparser\queryparser.tlog\queryparser.lastbuildstate
packing Release\obj\queryparser\src\addon.obj
packing Release\obj\queryparser\src\async.obj
packing Release\obj\queryparser\src\helpers.obj
packing Release\obj\queryparser\src\sync.obj
packing Release\obj\queryparser\win_delay_load_hook.obj
packing Release\queryparser.exp
packing Release\queryparser.iobj
packing Release\queryparser.ipdb
packing Release\queryparser.lib
packing Release\queryparser.node
packing Release\queryparser.pdb
node-pre-gyp info package Binary staged at "build\stage\libpg-query-node\queryparser-v16.0.1-node-v115-win32-x64.tar.gz"
node-pre-gyp info ok

@pyramation
Copy link
Collaborator

awesome! thanks everyone — chatting with @aquariuslt in telegram to get this streamlined!

@pyramation pyramation changed the base branch from 16-latest to 16-latest-windows March 29, 2024 07:05
@pyramation pyramation merged commit 8ece76c into launchql:16-latest-windows Mar 29, 2024
@pyramation
Copy link
Collaborator

published! thank you @aquariuslt :)

@Davidihl
Copy link

@pyramation I can happily confirm that everything looks okay so far

image

@pyramation
Copy link
Collaborator

yay! thanks @Davidihl :)

@karlhorky
Copy link
Contributor

karlhorky commented Apr 1, 2024

once this is merged, we should see how to get it working in the github workflow to get the full automation going

@pyramation I set up a simple workflow just today on GitHub Actions, which installs libpg-query with pnpm as part of the steps

Relevant parts of the workflow:

name: CI
on: push

jobs:
  ci:
    name: CI
    runs-on: windows-latest
    timeout-minutes: 20
    steps:
      - uses: actions/checkout@v4
      - uses: pnpm/action-setup@v3
        with:
          version: 'latest'
      - name: Use Node.js
        uses: actions/setup-node@v4
        with:
          node-version: 'lts/*'
          cache: 'pnpm'
      - name: Install dependencies
        run: pnpm install

I ran this just now (runner: windows-latest), here is the output:

pnpm install
  pnpm install
  shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'"
  env:
    PGHOST: localhost
    PGDATABASE: preflight_test_project_next_js_passing
    PGUSERNAME: preflight_test_project_next_js_passing
    PGPASSWORD: 
    PQ_LIB_DIR: C:\Program Files\PostgreSQL\14\lib
    PGROOT: 
    PGDATA: 
    PGBIN: 
    PGUSER: 
    PGSERVICEFILE: D:\a\_temp/pgdata/pg_service.conf
    PNPM_HOME: C:\Users\runneradmin\setup-pnpm\node_modules\.bin
  
Lockfile is up to date, resolution step is skipped
Progress: resolved 1, reused 0, downloaded 0, added 0
Packages: +637
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 637, reused 0, downloaded 0, added 0
Progress: resolved 637, reused 0, downloaded 20, added 10
Progress: resolved 637, reused 0, downloaded 105, added 96
Progress: resolved 637, reused 0, downloaded 113, added 103
Progress: resolved 637, reused 0, downloaded 206, added 201
Progress: resolved 637, reused 0, downloaded 273, added 261
Progress: resolved 637, reused 0, downloaded 362, added 355
Progress: resolved 637, reused 0, downloaded 443, added 434
Progress: resolved 637, reused 0, downloaded 518, added 510
Progress: resolved 637, reused 0, downloaded 630, added 618
Progress: resolved 637, reused 0, downloaded 637, added 637, done
.../[email protected]/node_modules/sharp install$ node install/check
.../[email protected]/node_modules/esbuild postinstall$ node install.js
.../[email protected]/node_modules/esbuild postinstall$ node install.js
.../[email protected]/node_modules/sharp install: Done
.../[email protected]/node_modules/esbuild postinstall: Done
.../[email protected]/node_modules/esbuild postinstall: Done
.../node_modules/libpg-query install$ node-pre-gyp install --fallback-to-build
.../node_modules/libpg-query install: node-pre-gyp info it worked if it ends with ok
.../node_modules/libpg-query install: node-pre-gyp info using [email protected]
.../node_modules/libpg-query install: node-pre-gyp info using [email protected] | win32 | x64
.../node_modules/libpg-query install: node-pre-gyp info check checked for "D:\a\preflight-test-project-next-js-passing\preflight-test-project-next-js-passing\node_modules\.pnpm\[email protected]\node_modules\libpg-query\build\Release\queryparser.node" (not found)
.../node_modules/libpg-query install: node-pre-gyp http GET https://supabase-public-artifacts-bucket.s3.amazonaws.com/libpg-query-node/queryparser-v16.1.0-node-v115-win32-x64.tar.gz
.../node_modules/libpg-query install: node-pre-gyp ERR! install response status 404 Not Found on https://supabase-public-artifacts-bucket.s3.amazonaws.com/libpg-query-node/queryparser-v16.1.0-node-v115-win32-x64.tar.gz 
.../node_modules/libpg-query install: node-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected] (node-v115 ABI, unknown) (falling back to source compile with node-gyp) 
.../node_modules/libpg-query install: node-pre-gyp WARN Hit error response status 404 Not Found on https://supabase-public-artifacts-bucket.s3.amazonaws.com/libpg-query-node/queryparser-v16.1.0-node-v115-win32-x64.tar.gz 
.../node_modules/libpg-query install: gyp info it worked if it ends with ok
.../node_modules/libpg-query install: gyp info using [email protected]
.../node_modules/libpg-query install: gyp info using [email protected] | win32 | x64
.../node_modules/libpg-query install: gyp info ok 
.../node_modules/libpg-query install: gyp info it worked if it ends with ok
.../node_modules/libpg-query install: gyp info using [email protected]
.../node_modules/libpg-query install: gyp info using [email protected] | win32 | x64
.../node_modules/libpg-query install: gyp info find Python using Python version 3.9.13 found at "C:\hostedtoolcache\windows\Python\3.9.13\x64\python3.exe"
.../node_modules/libpg-query install: gyp http GET https://nodejs.org/download/release/v20.11.1/node-v20.11.1-headers.tar.gz
.../node_modules/libpg-query install: gyp http 200 https://nodejs.org/download/release/v20.11.1/node-v20.11.1-headers.tar.gz
.../node_modules/libpg-query install: gyp http GET https://nodejs.org/download/release/v20.11.1/SHASUMS256.txt
.../node_modules/libpg-query install: gyp http GET https://nodejs.org/download/release/v20.11.1/win-x64/node.lib
.../node_modules/libpg-query install: gyp http 200 https://nodejs.org/download/release/v20.11.1/win-x64/node.lib
.../node_modules/libpg-query install: gyp http 200 https://nodejs.org/download/release/v20.11.1/SHASUMS256.txt
.../node_modules/libpg-query install: gyp info find VS using VS2022 (17.9.34714.143) found at:
.../node_modules/libpg-query install: gyp info find VS "C:\Program Files\Microsoft Visual Studio\2022\Enterprise"
.../node_modules/libpg-query install: gyp info find VS run with --verbose for detailed information
.../node_modules/libpg-query install: gyp info spawn C:\hostedtoolcache\windows\Python\3.9.13\x64\python3.exe
.../node_modules/libpg-query install: gyp info spawn args [
.../node_modules/libpg-query install: gyp info spawn args   'C:\\Users\\runneradmin\\setup-pnpm\\node_modules\\.pnpm\\[email protected]\\node_modules\\pnpm\\dist\\node_modules\\node-gyp\\gyp\\gyp_main.py',
.../node_modules/libpg-query install: gyp info spawn args   'binding.gyp',
.../node_modules/libpg-query install: gyp info spawn args   '-f',
.../node_modules/libpg-query install: gyp info spawn args   'msvs',
.../node_modules/libpg-query install: gyp info spawn args   '-I',
.../node_modules/libpg-query install: gyp info spawn args   'D:\\a\\preflight-test-project-next-js-passing\\preflight-test-project-next-js-passing\\node_modules\\.pnpm\\[email protected]\\node_modules\\libpg-query\\build\\config.gypi',
.../node_modules/libpg-query install: gyp info spawn args   '-I',
.../node_modules/libpg-query install: gyp info spawn args   'C:\\Users\\runneradmin\\setup-pnpm\\node_modules\\.pnpm\\[email protected]\\node_modules\\pnpm\\dist\\node_modules\\node-gyp\\addon.gypi',
.../node_modules/libpg-query install: gyp info spawn args   '-I',
.../node_modules/libpg-query install: gyp info spawn args   'C:\\Users\\runneradmin\\AppData\\Local\\node-gyp\\Cache\\20.11.1\\include\\node\\common.gypi',
.../node_modules/libpg-query install: gyp info spawn args   '-Dlibrary=shared_library',
.../node_modules/libpg-query install: gyp info spawn args   '-Dvisibility=default',
.../node_modules/libpg-query install: gyp info spawn args   '-Dnode_root_dir=C:\\Users\\runneradmin\\AppData\\Local\\node-gyp\\Cache\\20.11.1',
.../node_modules/libpg-query install: gyp info spawn args   '-Dnode_gyp_dir=C:\\Users\\runneradmin\\setup-pnpm\\node_modules\\.pnpm\\[email protected]\\node_modules\\pnpm\\dist\\node_modules\\node-gyp',
.../node_modules/libpg-query install: gyp info spawn args   '-Dnode_lib_file=C:\\\\Users\\\\runneradmin\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\20.11.1\\\\<(target_arch)\\\\node.lib',
.../node_modules/libpg-query install: gyp info spawn args   '-Dmodule_root_dir=D:\\a\\preflight-test-project-next-js-passing\\preflight-test-project-next-js-passing\\node_modules\\.pnpm\\[email protected]\\node_modules\\libpg-query',
.../node_modules/libpg-query install: gyp info spawn args   '-Dnode_engine=v8',
.../node_modules/libpg-query install: gyp info spawn args   '--depth=.',
.../node_modules/libpg-query install: gyp info spawn args   '--no-parallel',
.../node_modules/libpg-query install: gyp info spawn args   '--generator-output',
.../node_modules/libpg-query install: gyp info spawn args   'D:\\a\\preflight-test-project-next-js-passing\\preflight-test-project-next-js-passing\\node_modules\\.pnpm\\[email protected]\\node_modules\\libpg-query\\build',
.../node_modules/libpg-query install: gyp info spawn args   '-Goutput_dir=.'
.../node_modules/libpg-query install: gyp info spawn args ]
.../node_modules/libpg-query install: gyp info ok 
.../node_modules/libpg-query install: gyp info it worked if it ends with ok
.../node_modules/libpg-query install: gyp info using [email protected]
.../node_modules/libpg-query install: gyp info using [email protected] | win32 | x64
.../node_modules/libpg-query install: gyp info spawn C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\MSBuild.exe
.../node_modules/libpg-query install: gyp info spawn args [
.../node_modules/libpg-query install: gyp info spawn args   'build/binding.sln',
.../node_modules/libpg-query install: gyp info spawn args   '/clp:Verbosity=minimal',
.../node_modules/libpg-query install: gyp info spawn args   '/nologo',
.../node_modules/libpg-query install: gyp info spawn args   '/p:Configuration=Release;Platform=x64'
.../node_modules/libpg-query install: gyp info spawn args ]
.../node_modules/libpg-query install:   nothing.c
.../node_modules/libpg-query install:   win_delay_load_hook.cc
.../node_modules/libpg-query install:   nothing.vcxproj -> D:\a\preflight-test-project-next-js-passing\preflight-test-project-next-js-passing\node_modules\.pnpm\[email protected]\node_modules\libpg-query\build\Release\\nothing.lib
.../node_modules/libpg-query install:   prebuild_dependencies
.../node_modules/libpg-query install:   The system cannot find the file specified.
.../node_modules/libpg-query install:   Cloning into 'libpg_query'...
.../node_modules/libpg-query install:   Note: switching to '1ec38940e5c6f09a4c1d17a46d839a881c4f2db7'.
.../node_modules/libpg-query install:   
.../node_modules/libpg-query install:   You are in 'detached HEAD' state. You can look around, make experimental
.../node_modules/libpg-query install:   changes and commit them, and you can discard any commits you make in this
.../node_modules/libpg-query install:   state without impacting any branches by switching back to a branch.
.../node_modules/libpg-query install:   
.../node_modules/libpg-query install:   If you want to create a new branch to retain commits you create, you may
.../node_modules/libpg-query install:   do so (now or later) by using -c with the switch command. Example:
.../node_modules/libpg-query install:   
.../node_modules/libpg-query install:     git switch -c <new-branch-name>
.../node_modules/libpg-query install:   
.../node_modules/libpg-query install:   Or undo this operation with:
.../node_modules/libpg-query install:   
.../node_modules/libpg-query install:     git switch -
.../node_modules/libpg-query install:   
.../node_modules/libpg-query install:   Turn off this advice by setting config variable advice.detachedHead to false
.../node_modules/libpg-query install:   
.../node_modules/libpg-query install:   HEAD is now at 1ec3894 Release 16-5.1.0
.../node_modules/libpg-query install:   "please ensure you are running at Windows Developer Command Prompt environments"
.../node_modules/libpg-query install:   
.../node_modules/libpg-query install:   Microsoft (R) Program Maintenance Utility Version 14.38.33135.0
.../node_modules/libpg-query install:   Copyright (C) Microsoft Corporation.  All rights reserved.
.../node_modules/libpg-query install:   
.../node_modules/libpg-query install:   	del *.obj
.../node_modules/libpg-query install:   Could Not Find C:\Users\RUNNER~1\AppData\Local\Temp\tmpdir.libpg_query\libpg_query\*.obj
.../node_modules/libpg-query install:   	del pg_query.lib
.../node_modules/libpg-query install:   Could Not Find C:\Users\RUNNER~1\AppData\Local\Temp\tmpdir.libpg_query\libpg_query\pg_query.lib
.../node_modules/libpg-query install:   
.../node_modules/libpg-query install:   Microsoft (R) Program Maintenance Utility Version 14.38.33135.0
.../node_modules/libpg-query install:   Copyright (C) Microsoft Corporation.  All rights reserved.
.../node_modules/libpg-query install:   
.../node_modules/libpg-query install:   	del *.obj
.../node_modules/libpg-query install:   Could Not Find C:\Users\RUNNER~1\AppData\Local\Temp\tmpdir.libpg_query\libpg_query\*.obj
.../node_modules/libpg-query install:   	del pg_query.lib
.../node_modules/libpg-query install:   Could Not Find C:\Users\RUNNER~1\AppData\Local\Temp\tmpdir.libpg_query\libpg_query\pg_query.lib
.../node_modules/libpg-query install:   	cl -I. -I./vendor -I./src/postgres/include -I./src/include -I./src/postgres/include/port/win32 -I./src/postgres/include/port/win32_msvc /c src/*.c src/postgres/*.c vendor/protobuf-c/protobuf-c.c vendor/xxhash/xxhash.c protobuf/pg_query.pb-c.c
.../node_modules/libpg-query install:   Microsoft (R) C/C++ Optimizing Compiler Version 19.38.33135 for x64
.../node_modules/libpg-query install:   Copyright (C) Microsoft Corporation.  All rights reserved.
.../node_modules/libpg-query install:   
.../node_modules/libpg-query install:   pg_query.c
.../node_modules/libpg-query install:   pg_query_deparse.c
.../node_modules/libpg-query install:   pg_query_fingerprint.c
.../node_modules/libpg-query install:   pg_query_json_plpgsql.c
.../node_modules/libpg-query install:   pg_query_normalize.c
.../node_modules/libpg-query install:   pg_query_outfuncs_json.c
.../node_modules/libpg-query install:   pg_query_outfuncs_protobuf.c
.../node_modules/libpg-query install:   pg_query_parse.c
.../node_modules/libpg-query install:   pg_query_parse_plpgsql.c
.../node_modules/libpg-query install:   pg_query_readfuncs_protobuf.c
.../node_modules/libpg-query install:   pg_query_scan.c
.../node_modules/libpg-query install:   pg_query_split.c
.../node_modules/libpg-query install:   postgres_deparse.c
.../node_modules/libpg-query install:   src_backend_catalog_namespace.c
.../node_modules/libpg-query install:   src_backend_catalog_pg_proc.c
.../node_modules/libpg-query install:   src_backend_commands_define.c
.../node_modules/libpg-query install:   src_backend_nodes_bitmapset.c
.../node_modules/libpg-query install:   src_backend_nodes_copyfuncs.c
.../node_modules/libpg-query install:   src_backend_nodes_equalfuncs.c
.../node_modules/libpg-query install:   src_backend_nodes_extensible.c
.../node_modules/libpg-query install:   Generating Code...
.../node_modules/libpg-query install: C:\Users\runneradmin\AppData\Local\Temp\tmpdir.libpg_query\libpg_query\src\pg_query_readfuncs_protobuf.c(153): warning C4715: '_readNode': not all control paths return a value [D:\a\preflight-test-project-next-js-passing\preflight-test-project-next-js-passing\node_modules\.pnpm\[email protected]\node_modules\libpg-query\build\queryparser.vcxproj]
.../node_modules/libpg-query install:   Compiling...
.../node_modules/libpg-query install:   src_backend_nodes_list.c
.../node_modules/libpg-query install:   src_backend_nodes_makefuncs.c
.../node_modules/libpg-query install:   src_backend_nodes_nodeFuncs.c
.../node_modules/libpg-query install:   src_backend_nodes_nodes.c
.../node_modules/libpg-query install:   src_backend_nodes_value.c
.../node_modules/libpg-query install:   src_backend_parser_gram.c
.../node_modules/libpg-query install:   src_backend_parser_parser.c
.../node_modules/libpg-query install:   src_backend_parser_scan.c
.../node_modules/libpg-query install:   src_backend_parser_scansup.c
.../node_modules/libpg-query install:   src_backend_storage_ipc_ipc.c
.../node_modules/libpg-query install:   src_backend_tcop_postgres.c
.../node_modules/libpg-query install:   src_backend_utils_activity_pgstat_database.c
.../node_modules/libpg-query install:   src_backend_utils_adt_datum.c
.../node_modules/libpg-query install:   src_backend_utils_adt_expandeddatum.c
.../node_modules/libpg-query install:   src_backend_utils_adt_format_type.c
.../node_modules/libpg-query install:   src_backend_utils_adt_numutils.c
.../node_modules/libpg-query install:   src_backend_utils_adt_ruleutils.c
.../node_modules/libpg-query install:   src_backend_utils_error_assert.c
.../node_modules/libpg-query install:   src_backend_utils_error_elog.c
.../node_modules/libpg-query install:   src_backend_utils_fmgr_fmgr.c
.../node_modules/libpg-query install:   Generating Code...
.../node_modules/libpg-query install:   Compiling...
.../node_modules/libpg-query install:   src_backend_utils_init_globals.c
.../node_modules/libpg-query install:   src_backend_utils_mb_mbutils.c
.../node_modules/libpg-query install:   src_backend_utils_misc_guc_tables.c
.../node_modules/libpg-query install:   src_backend_utils_mmgr_alignedalloc.c
.../node_modules/libpg-query install:   src_backend_utils_mmgr_aset.c
.../node_modules/libpg-query install:   src_backend_utils_mmgr_generation.c
.../node_modules/libpg-query install:   src_backend_utils_mmgr_mcxt.c
.../node_modules/libpg-query install:   src_backend_utils_mmgr_slab.c
.../node_modules/libpg-query install:   src_common_encnames.c
.../node_modules/libpg-query install:   src_common_hashfn.c
.../node_modules/libpg-query install:   src_common_keywords.c
.../node_modules/libpg-query install:   src_common_kwlookup.c
.../node_modules/libpg-query install:   src_common_psprintf.c
.../node_modules/libpg-query install:   src_common_stringinfo.c
.../node_modules/libpg-query install:   src_common_wchar.c
.../node_modules/libpg-query install:   src_pl_plpgsql_src_pl_comp.c
.../node_modules/libpg-query install:   src_pl_plpgsql_src_pl_funcs.c
.../node_modules/libpg-query install:   src_pl_plpgsql_src_pl_gram.c
.../node_modules/libpg-query install:   src_pl_plpgsql_src_pl_handler.c
.../node_modules/libpg-query install:   src_pl_plpgsql_src_pl_scanner.c
.../node_modules/libpg-query install:   Generating Code...
.../node_modules/libpg-query install:   Compiling...
.../node_modules/libpg-query install:   src_port_pgstrcasecmp.c
.../node_modules/libpg-query install:   src_port_pg_bitutils.c
.../node_modules/libpg-query install:   src_port_qsort.c
.../node_modules/libpg-query install:   src_port_snprintf.c
.../node_modules/libpg-query install:   src_port_strerror.c
.../node_modules/libpg-query install:   src_port_strlcpy.c
.../node_modules/libpg-query install:   protobuf-c.c
.../node_modules/libpg-query install:   xxhash.c
.../node_modules/libpg-query install:   pg_query.pb-c.c
.../node_modules/libpg-query install:   Generating Code...
.../node_modules/libpg-query install:   	lib /OUT:pg_query.lib *.obj
.../node_modules/libpg-query install:   Microsoft (R) Library Manager Version 14.38.33135.0
.../node_modules/libpg-query install:   Copyright (C) Microsoft Corporation.  All rights reserved.
.../node_modules/libpg-query install:   
.../node_modules/libpg-query install:           1 file(s) copied.
.../node_modules/libpg-query install:           1 file(s) copied.
.../node_modules/libpg-query install: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): warning MSB8065: Custom build for item "..\binding.gyp" succeeded, but specified output "d:\a\preflight-test-project-next-js-passing\preflight-test-project-next-js-passing\node_modules\.pnpm\[email protected]\node_modules\libpg-query\build" has not been created. This may cause incremental build to work incorrectly. [D:\a\preflight-test-project-next-js-passing\preflight-test-project-next-js-passing\node_modules\.pnpm\[email protected]\node_modules\libpg-query\build\queryparser.vcxproj]
.../node_modules/libpg-query install:   addon.cc
.../node_modules/libpg-query install:   helpers.cc
.../node_modules/libpg-query install:   sync.cc
.../node_modules/libpg-query install:   async.cc
.../node_modules/libpg-query install:   win_delay_load_hook.cc
.../node_modules/libpg-query install:      Creating library D:\a\preflight-test-project-next-js-passing\preflight-test-project-next-js-passing\node_modules\.pnpm\[email protected]\node_modules\libpg-query\build\Release\queryparser.lib and object D:\a\preflight-test-project-next-js-passing\preflight-test-project-next-js-passing\node_modules\.pnpm\[email protected]\node_modules\libpg-query\build\Release\queryparser.exp
.../node_modules/libpg-query install:   Generating code
.../node_modules/libpg-query install:   Previous IPDB not found, fall back to full compilation.
.../node_modules/libpg-query install:   All 287 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
.../node_modules/libpg-query install:   Finished generating code
.../node_modules/libpg-query install:   queryparser.vcxproj -> D:\a\preflight-test-project-next-js-passing\preflight-test-project-next-js-passing\node_modules\.pnpm\[email protected]\node_modules\libpg-query\build\Release\\queryparser.node
.../node_modules/libpg-query install: gyp info ok 
.../node_modules/libpg-query install: node-pre-gyp info ok 
.../node_modules/libpg-query install: Done
dependencies:
+ @upleveled/ley 0.8.6
+ dotenv 16.4.5
+ next 14.1.4
+ postgres 3.4.4
+ react 18.2.0
+ react-dom 18.2.0
+ sass 1.72.0
+ server-only 0.0.1
+ sharp 0.33.3
+ tsx 4.7.1
devDependencies:
+ @ts-safeql/eslint-plugin 2.0.3
+ @types/node 20.12.2
+ @types/react 18.2.73
+ @types/react-dom 18.2.23
+ eslint-config-upleveled 7.8.3
+ libpg-query 16.1.0
+ prettier 3.2.5
+ prettier-plugin-embed 0.4.15
+ prettier-plugin-sql 0.18.0
+ stylelint 16.3.1
+ stylelint-config-upleveled 1.1.1
+ typescript 5.4.3
Done in 3m 35.7s

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

Successfully merging this pull request may close these issues.

4 participants