)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":1000001,"name":"Frank Lichtenheld","display_name":"Frank Lichtenheld","email":"frank@lichtenheld.com","username":"flichtenheld","status":"OpenVPN Inc."},"change_message_id":"b22f234b37ba7b71a58cac2bf44a2e7d098b5ba4","unresolved":true,"context_lines":[{"line_number":4,"context_line":"Commit:     Lev Stipakov \u003clev@openvpn.net\u003e"},{"line_number":5,"context_line":"CommitDate: 2024-01-12 14:38:20 +0200"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"CMakeLists.txt: Don\u0027t fail on missing compile_commands.json"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Commit"},{"line_number":10,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"ff72c046_d852df10","line":7,"updated":"2024-01-12 14:13:10.000000000","message":"Change to CMake: Don\u0027t fail if compile_commands.json symlink can\u0027t be created.","commit_id":"402c534982d47af018385b9871c2d652e3463643"},{"author":{"_account_id":1000001,"name":"Frank Lichtenheld","display_name":"Frank Lichtenheld","email":"frank@lichtenheld.com","username":"flichtenheld","status":"OpenVPN Inc."},"change_message_id":"b22f234b37ba7b71a58cac2bf44a2e7d098b5ba4","unresolved":true,"context_lines":[{"line_number":12,"context_line":""},{"line_number":13,"context_line":"added creation of compile commands file and a symbolic link to it."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"There a two issues:"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":" - CMAKE_EXPORT_COMPILE_COMMANDS works only on Ninja and Makefile"},{"line_number":18,"context_line":"generators and doesn\u0027t produce anything on MSVC."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"78f9bf15_9a748563","line":15,"updated":"2024-01-12 14:13:10.000000000","message":"I would suggest replacing this whole section with:\n\n\u003c---\u003e\nCreating symlinks on Windows by default requires an elevated prompt,\nwhich is not normally the case (but it turned out is the case for GHA).\nWithout elevated prompt this fails the build.\nFix by make symlink creation non-fatal by providing variable\nto store result.\n\nSince CMAKE_EXPORT_COMPILE_COMMANDS works only on Ninja and Makefile generators and doesn\u0027t produce anything on MSVC,\nthe symlink is useless in this case anyway.\n\u003c----\u003e\n\nThis makes it clearer what the actual issue is, but mentions\nthe other issue as justification.","commit_id":"402c534982d47af018385b9871c2d652e3463643"}],"/PATCHSET_LEVEL":[{"author":{"_account_id":1000001,"name":"Frank Lichtenheld","display_name":"Frank Lichtenheld","email":"frank@lichtenheld.com","username":"flichtenheld","status":"OpenVPN Inc."},"change_message_id":"c6e7c32ddb32260530114ce2d41c4fdff5c13ae5","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"1b83d1df_3ed5c5e9","updated":"2024-01-12 10:28:02.000000000","message":"As discussed on IRC: I really would like to understand and document WHY this patch is needed. When calling CMake directly (e.g. in GHA), the broken symlink is created without complaint.","commit_id":"8fed5a9a753932ec9df205ecbdedd35b96f362fa"},{"author":{"_account_id":1000008,"name":"Lev Stipakov","display_name":"Lev Stipakov","email":"lstipakov@gmail.com","username":"stipa"},"change_message_id":"9d957cdd2d146139b531b1ba2d15958270667562","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"90486bc7_1afc08da","in_reply_to":"1b83d1df_3ed5c5e9","updated":"2024-01-12 11:04:34.000000000","message":"I got the same error when running CMake from CMD:\n\nhttps://gist.githubusercontent.com/lstipakov/3c87a0d4c5eeb0ce7c91645171814221/raw/e25fe78607eeb6e0fda4225271e7c248f51e6e81/gistfile1.txt\n\n(the error messages translates to \"user doesn\u0027t have required permissions\")","commit_id":"8fed5a9a753932ec9df205ecbdedd35b96f362fa"}]}
