Multiple cors middlewares on same request?

I have an API where I want every path to be CORS-enabled for all origins except for /auth/connect/twitter because it uses a cookie based session.
I was wondering if it would be possible to make it so that the last cors() middleware always overrides precedent ones. E.g.
router.use(cors())
router.use(cors({ origin: 'http://mydomain.com' }))

should set the Access-Control-Allow-Origin to http://mydomain.com. Is that possible?

Running into the same issue. From what we can tell multiple calls to cors strictly append to the existing headers. While there may be a use case for this, not being able to override this behavior is a non-starter.
We don't want Access-Control-Allow-Origin to be *,http://example.com.
Probably just going to gut cors for now since this is time sensitive.

Yes, I ended up doing something like this:
    const corsMiddleware = cors()
    router.use((req, res, next) => {
      if (req.path.match(/^\/auth\/connect\//)) {
        // let other connect.init() middleware handle it!
        return next()
      }
      return corsMiddleware(req, res, next)
    })

I like your solution @olalonde

I was looking into the code for cors today and I think it might be supported out of the box. It appears that there are undocumented code that supports regular expressions and arrays. When you pass an object to cors() it calls the private function isOriginAllowed with what is inside the origin property if that is not a function. That supports Array and RegExp, so you could actually have a regular expression for your domain. And it will only add the Access-Control-Allow-Origin Header if req.headers.origin matches
function isOriginAllowed(origin, allowedOrigin) {     if (Array.isArray(allowedOrigin)) {       for (var i = 0; i < allowedOrigin.length; ++i) {         if (isOriginAllowed(origin, allowedOrigin[i])) {           return true;         }       }       return false;     } else if (isString(allowedOrigin)) {       return origin === allowedOrigin;     } else if (allowedOrigin instanceof RegExp) {       return allowedOrigin.test(origin);     } else {       return !!allowedOrigin;     }   }

hey Hii every one i am new to opensource world can any one help me in making my first contribution in this library.by explaining it more to me and guiding me.

You can dynamically configure CORS per request via passing a function to it directly which accepts a req and a callback to pass an options object to.
You may find it easier to maintain if you centralize your CORS setup like this instead of skipping the setup for some requests, and counting on it being set up in a later router:
const express = require('express');
const cors = require('cors');
const app = express();

// function to dynamically produce options
const dynamicCors = (req, callback) => {
  const corsOptions = {};
  if (req.path === '/auth/connect/twitter') {
    corsOptions.origin = 'http://mydomain.com';
    corsOptions.credentials = true;
  } else {
    corsOptions.origin = '*';
  }
  // pass the options to callback to apply them
  callback(null, corsOptions);
};

app.use(cors(dynamicCors));

app.get('/auth/connect/twitter', (req, res) => {
  res.send('Twitter authentication');
});

app.get('/public', (req, res) => {
  res.send('Public data');
});

app.listen(3000, () => {
  console.log('Server running on port 3000');
});


SQLite3 shows unsupported Architecture.

Issue Summary:
Unable to build SQLite3 on intel Mac OSx.
I am trying build an electron app with SQLite3 as dependency, but each time I do yarn, it ends up with a fail with unsupported architecture error. Tried it with different versions of Node and SQLite3,  but it didn't work either.
Here is the pacakge.json file
{
  "name": "neetoseoaudit",
  "version": "0.1.9",
  "private": true,
  "dependencies": {
    "@bigbinary/neeto-icons": "^1.8.29",
    "@bigbinary/neetoui": "^3.2.10",
    "@testing-library/jest-dom": "^4.2.4",
    "@testing-library/react": "^9.3.2",
    "@testing-library/user-event": "^7.1.2",
    "autoprefixer": "^10.0.1",
    "cheerio": "^1.0.0-rc.3",
    "classnames": "^2.3.1",
    "concurrently": "^5.3.0",
    "electron": "^16.0.1",
    "file-saver": "^2.0.5",
    "formik": "^2.2.9",
    "node-sass": "^6.0.1",
    "path": "^0.12.7",
    "postcss-cli": "^8.1.0",
    "react": "^17.0.2",
    "react-dom": "^17.0.2",
    "react-redux": "^7.2.2",
    "react-router-dom": "^6.2.1",
    "react-router-nav-prompt": "^0.4.1",
    "react-scripts": "^4.0.3",
    "react-toastify": "^8.1.0",
    "react-virtualized-auto-sizer": "^1.0.5",
    "react-window": "^1.8.6",
    "redux": "^4.0.5",
    "redux-thunk": "^2.3.0",
    "remixicon": "^2.5.0",
    "simplecrawler": "^1.1.9",
    "sqlite3": "^5.0.2n",
    "use-timer": "^2.0.1",
    "wait-on": "^5.2.0",
    "xlsx": "^0.17.4"
  },
  "main": "main.js",
  "homepage": "./",
  "scripts": {
    "build:style": "tailwind build src/styles/main.css -o src/styles/tailwind.css",
    "start": "yarn run build:style && react-scripts start",
    "build": "yarn run build:style && react-scripts build",
    "postinstall": "electron-builder install-app-deps --arch arm64",
    "test": "react-scripts test",
    "eject": "react-scripts eject",
    "electron": "concurrently \"BROWSER=none yarn start\" \"wait-on http://localhost:3000 && electron .\"",
    "package-mac": "yarn build && electron-packager . neetoseoaudit --overwrite --platform=darwin --arch=x64  --prune=true --out=release-builds",
    "package-win": "yarn build && electron-packager . neetoseoaudit --asar --overwrite --platform=win32 --arch=x64  --prune=true --out=release-builds --version-string.CompanyName=CE --version-string.FileDescription=CE --version-string.ProductName=\"neetoseoaudit\""
  },
  "eslintConfig": {
    "extends": "react-app"
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  },
  "devDependencies": {
    "electron-builder": "^22.14.5",
    "electron-devtools-installer": "^3.1.1",
    "electron-packager": "^15.2.0",
    "husky": "^4.3.0",
    "lint-staged": "^10.4.0",
    "prettier": "^2.1.2",
    "tailwindcss": "^1.9.1"
  },
  "husky": {
    "hooks": {
      "pre-commit": "lint-staged"
    }
  },
  "lint-staged": {
    "src/**/*.{js,jsx,json,css,scss,md}": [
      "prettier --write"
    ]
  }
}

Relevant logs or output
yarn install v1.22.19
warning ../../../package.json: No license field
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
warning " ><EMAIL_ADDRESS>has incorrect peer dependency<EMAIL_ADDRESS>warning " ><EMAIL_ADDRESS>has incorrect peer dependency<EMAIL_ADDRESS>warning " ><EMAIL_ADDRESS>has incorrect peer dependency<EMAIL_ADDRESS>warning "@bigbinary/neetoui ><EMAIL_ADDRESS>has unmet peer dependency<EMAIL_ADDRESS>|| ^5.0.0".
warning " ><EMAIL_ADDRESS>has incorrect peer dependency<EMAIL_ADDRESS>warning " ><EMAIL_ADDRESS>has incorrect peer dependency<EMAIL_ADDRESS>warning "@bigbinary/neetoui > react-outside-click-handler ><EMAIL_ADDRESS>has incorrect peer dependency<EMAIL_ADDRESS>|| ^15.0.0 || ^16.0.0-alpha".
warning " ><EMAIL_ADDRESS>has unmet peer dependency "@testing-library/dom@>=5".
warning " ><EMAIL_ADDRESS>has unmet peer dependency<EMAIL_ADDRESS>warning " ><EMAIL_ADDRESS>has unmet peer dependency<EMAIL_ADDRESS>warning "postcss-cli ><EMAIL_ADDRESS>has unmet peer dependency<EMAIL_ADDRESS>warning "react-scripts > @typescript-eslint/eslint-plugin ><EMAIL_ADDRESS>has unmet peer dependency<EMAIL_ADDRESS>|| >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
warning "react-scripts > eslint-plugin-testing-library > @typescript-eslint/experimental-utils > @typescript-eslint/typescript-estree ><EMAIL_ADDRESS>has unmet peer dependency<EMAIL_ADDRESS>|| >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
[4/4] 🔨  Building fresh packages...
success Saved lockfile.
$ electron-builder install-app-deps --arch arm64
  • electron-builder  version=22.14.13
  • public/electron.js not found. Please see https://medium.com/@kitze/%EF%B8%8F-from-react-to-an-electron-app-ready-for-production-a0468ecb1da3
  • loaded parent configuration  preset=react-cra
  • rebuilding native dependencies<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>platform=darwin arch=arm64
  • rebuilding native dependency  name=sqlite3 version=5.0.8
  • rebuilding native dependency  name=node-sass version=6.0.1
  • rebuilding native dependency  name=fsevents version=1.2.13
  ⨯ cannot execute  cause=exit status 1
yarn run v1.22.19
$ node-pre-gyp install --fallback-to-build
      CC(target) Release/obj.target/nothing/../node-addon-api/nothing.o
      LIBTOOL-STATIC Release/nothing.a
      ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3380400/sqlite3.c
      TOUCH Release/obj.target/deps/action_before_build.stamp
      CC(target) Release/obj.target/sqlite3/gen/sqlite-autoconf-3380400/sqlite3.o
    Failed to execute '/Users/sarojsasamal/.nvm/versions/node/v14.15.0/bin/node /Users/sarojsasamal/Projects/BigBinary/neeto-seoaudit/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/sarojsasamal/Projects/BigBinary/neeto-seoaudit/node_modules/sqlite3/lib/binding/napi-v6-darwin-unknown-arm64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/Users/sarojsasamal/Projects/BigBinary/neeto-seoaudit/node_modules/sqlite3/lib/binding/napi-v6-darwin-unknown-arm64 --napi_version=7 --node_abi_napi=napi --napi_build_version=6 --node_napi_label=napi-v6' (1)
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

warning ../../../../../package.json: No license field
    node-pre-gyp info it worked if it ends with ok
    node-pre-gyp info using<EMAIL_ADDRESS>    node-pre-gyp info using<EMAIL_ADDRESS>| darwin | x64
    node-pre-gyp http GET https://github.com/TryGhost/node-sqlite3/releases/download/v5.0.8/napi-v6-darwin-unknown-arm64.tar.gz
    node-pre-gyp ERR! install response status 404 Not Found on https://github.com/TryGhost/node-sqlite3/releases/download/v5.0.8/napi-v6-darwin-unknown-arm64.tar.gz
    node-pre-gyp WARN Pre-built binaries not installable for<EMAIL_ADDRESS>and<EMAIL_ADDRESS>(electron-v16.0 ABI, unknown) (falling back to source compile with node-gyp)
    node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/TryGhost/node-sqlite3/releases/download/v5.0.8/napi-v6-darwin-unknown-arm64.tar.gz
    gyp info it worked if it ends with ok
    gyp info using<EMAIL_ADDRESS>    gyp info using<EMAIL_ADDRESS>| darwin | x64
    gyp info ok
    gyp info it worked if it ends with ok
    gyp info using<EMAIL_ADDRESS>    gyp info using<EMAIL_ADDRESS>| darwin | x64
    gyp info find Python using Python version 3.9.13 found at<EMAIL_ADDRESS>    gyp info spawn<EMAIL_ADDRESS>    gyp info spawn args [
    gyp info spawn args   '/Users/sarojsasamal/Projects/BigBinary/neeto-seoaudit/node_modules/node-gyp/gyp/gyp_main.py',
    gyp info spawn args   'binding.gyp',
    gyp info spawn args   '-f',
    gyp info spawn args   'make',
    gyp info spawn args   '-I',
    gyp info spawn args   '/Users/sarojsasamal/Projects/BigBinary/neeto-seoaudit/node_modules/sqlite3/build/config.gypi',
    gyp info spawn args   '-I',
    gyp info spawn args   '/Users/sarojsasamal/Projects/BigBinary/neeto-seoaudit/node_modules/node-gyp/addon.gypi',
    gyp info spawn args   '-I',
    gyp info spawn args   '/Users/sarojsasamal/.electron-gyp/16.0.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=/Users/sarojsasamal/.electron-gyp/16.0.1',
    gyp info spawn args   '-Dnode_gyp_dir=/Users/sarojsasamal/Projects/BigBinary/neeto-seoaudit/node_modules/node-gyp',
    gyp info spawn args   '-Dnode_lib_file=/Users/sarojsasamal/.electron-gyp/16.0.1/<(target_arch)/node.lib',
    gyp info spawn args   '-Dmodule_root_dir=/Users/sarojsasamal/Projects/BigBinary/neeto-seoaudit/node_modules/sqlite3',
    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   '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_ADDRESS>    gyp info using<EMAIL_ADDRESS>| darwin | x64
    gyp info spawn make
    gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
    warning: /Library/Developer/CommandLineTools/usr/bin/libtool: archive library: Release/nothing.a the table of contents is empty (no object file members in the library define global symbols)
    In file included from Release/obj/gen/sqlite-autoconf-3380400/sqlite3.c:14014:
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64:
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:68:
    /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/cdefs.h:807:2: error: Unsupported architecture
    #error Unsupported architecture
     ^
    In file included from Release/obj/gen/sqlite-autoconf-3380400/sqlite3.c:14014:
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64:
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:71:
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/_types.h:27:
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:33:
    /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/machine/_types.h:34:2: error: architecture not supported
    #error architecture not supported
     ^
    In file included from Release/obj/gen/sqlite-autoconf-3380400/sqlite3.c:14014:
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64:
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:71:
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/_types.h:27:
    /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'
    typedef __int64_t       __darwin_blkcnt_t;      /* total blocks */
            ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
    typedef __int32_t       __darwin_blksize_t;     /* preferred block size */
            ^
    note: '__int128_t' declared here
    /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
    typedef __int32_t       __darwin_dev_t;         /* dev_t */
            ^
    note: '__int128_t' declared here
    /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    typedef __uint32_t      __darwin_gid_t;         /* [???] process and group IDs */
            ^
    note: '__uint128_t' declared here
    /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    typedef __uint32_t      __darwin_id_t;          /* [XSI] pid_t, uid_t, or gid_t*/
            ^
    note: '__uint128_t' declared here
    /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'
    typedef __uint64_t      __darwin_ino64_t;       /* [???] Used for 64 bit inodes */
            ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'
    typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
            ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'; did you mean '__uint128_t'?
    typedef __uint16_t      __darwin_mode_t;        /* [???] Some file attributes */
            ^
    note: '__uint128_t' declared here
    /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'
    typedef __int64_t       __darwin_off_t;         /* [???] Used for file sizes */
            ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
    typedef __int32_t       __darwin_pid_t;         /* [???] process and group IDs */
            ^
    note: '__int128_t' declared here
    /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    typedef __uint32_t      __darwin_sigset_t;      /* [???] signal set */
            ^
    note: '__uint128_t' declared here
    /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
    typedef __int32_t       __darwin_suseconds_t;   /* [???] microseconds */
            ^
    note: '__int128_t' declared here
    /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    typedef __uint32_t      __darwin_uid_t;         /* [???] user IDs */
            ^
    note: '__uint128_t' declared here
    /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    typedef __uint32_t      __darwin_useconds_t;    /* [???] microseconds */
            ^
    note: '__uint128_t' declared here
    In file included from Release/obj/gen/sqlite-autoconf-3380400/sqlite3.c:14014:
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64:
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:71:
    /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/_types.h:43:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    typedef __uint32_t      __darwin_wctype_t;
            ^
    note: '__uint128_t' declared here
    In file included from Release/obj/gen/sqlite-autoconf-3380400/sqlite3.c:14014:
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64:
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:75:
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_va_list.h:31:
    /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/machine/types.h:37:2: error: architecture not supported
    #error architecture not supported
     ^
    In file included from Release/obj/gen/sqlite-autoconf-3380400/sqlite3.c:14014:
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64:
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:75:
    /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_va_list.h:32:9: error: unknown type name '__darwin_va_list'
    typedef __darwin_va_list va_list;
            ^
    fatal error: too many errors emitted, stopping now [-ferror-limit=]
    20 errors generated.
    make: *** [Release/obj.target/sqlite3/gen/sqlite-autoconf-3380400/sqlite3.o] Error 1
    gyp ERR! build error
    gyp ERR! stack Error: `make` failed with exit code: 2
    gyp ERR! stack     at ChildProcess.onExit (/Users/sarojsasamal/Projects/BigBinary/neeto-seoaudit/node_modules/node-gyp/lib/build.js:194:23)
    gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
    gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
    gyp ERR! System Darwin 19.6.0
    gyp ERR! command "/Users/sarojsasamal/.nvm/versions/node/v14.15.0/bin/node" "/Users/sarojsasamal/Projects/BigBinary/neeto-seoaudit/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/sarojsasamal/Projects/BigBinary/neeto-seoaudit/node_modules/sqlite3/lib/binding/napi-v6-darwin-unknown-arm64/node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=/Users/sarojsasamal/Projects/BigBinary/neeto-seoaudit/node_modules/sqlite3/lib/binding/napi-v6-darwin-unknown-arm64" "--napi_version=7" "--node_abi_napi=napi" "--napi_build_version=6" "--node_napi_label=napi-v6"
    gyp ERR! cwd /Users/sarojsasamal/Projects/BigBinary/neeto-seoaudit/node_modules/sqlite3
    gyp ERR! node -v v14.15.0
    gyp ERR! node-gyp -v v8.4.1
    gyp ERR! not ok
    node-pre-gyp ERR! build error
    node-pre-gyp ERR! stack Error: Failed to execute '/Users/sarojsasamal/.nvm/versions/node/v14.15.0/bin/node /Users/sarojsasamal/Projects/BigBinary/neeto-seoaudit/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/sarojsasamal/Projects/BigBinary/neeto-seoaudit/node_modules/sqlite3/lib/binding/napi-v6-darwin-unknown-arm64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/Users/sarojsasamal/Projects/BigBinary/neeto-seoaudit/node_modules/sqlite3/lib/binding/napi-v6-darwin-unknown-arm64 --napi_version=7 --node_abi_napi=napi --napi_build_version=6 --node_napi_label=napi-v6' (1)
    node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/Users/sarojsasamal/Projects/BigBinary/neeto-seoaudit/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23)
    node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
    node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:1048:16)
    node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
    node-pre-gyp ERR! System Darwin 19.6.0
    node-pre-gyp ERR! command "/Users/sarojsasamal/.nvm/versions/node/v14.15.0/bin/node" "/Users/sarojsasamal/Projects/BigBinary/neeto-seoaudit/node_modules/sqlite3/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
    node-pre-gyp ERR! cwd /Users/sarojsasamal/Projects/BigBinary/neeto-seoaudit/node_modules/sqlite3
    node-pre-gyp ERR! node -v v14.15.0
    node-pre-gyp ERR! node-pre-gyp -v v1.0.9
    node-pre-gyp ERR! not ok
error Command failed with exit code 1.

                    command=/Users/sarojsasamal/.nvm/versions/node/v14.15.0/bin/node /Users/sarojsasamal/.nvm/versions/node/v14.15.0/lib/node_modules/yarn/bin/yarn.js run install
                    workingDir=/Users/sarojsasamal/Projects/BigBinary/neeto-seoaudit/node_modules/sqlite3
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Version
5.0.2
Node.js Version
14.15.0
How did you install the library?
macOs Catalina Version 10.15.7
Yarn add  sqlite3

I'm experiencing the same issue I have tried both with Node 14 and 18. I tried specifying:
npm install sqlite3 --build-from-source --target_arch=arm64 --fallback-to-build
But however it does not work. Using sqlite3 version 5.0.8

@mjovanc have you tried npm install sqlite3 --build-from-source command ?

@saroj990 Yes, still the same issue unfortunately.

@saroj990 I have the exact same problem on an M1 Pro machine after running npm install<EMAIL_ADDRESS>npm ERR! node-pre-gyp ERR! install response status 404 Not Found on https://github.com/TryGhost/node-sqlite3/releases/download/v5.0.8/napi-v6-darwin-unknown-arm64.tar.gz

When trying to build from the source:
Release/obj/gen/sqlite-autoconf-3380400/sqlite3.c:341:10: fatal error: cannot open file '/usr/local/include/stdarg.h': Permission denied

Okay using x64 version fixed the problem for now:
npm install sqlite3 --target_arch=x64

@saroj990 I believe this should be re-opened


[MINOR] remove the duplicate property username in RemoteInterpreter

What is this PR for?

Remove the username property in class RemoteInterpreter, instead reuse the username property in class Interpreter， to avoid get null value with method getUserName in the super class Interpreter

Overwrite username get/set method  in class LazyOpenInterpreter

What type of PR is it?
[Improvement]
Todos

[ ] - Task

What is the Jira issue?

[ZEPPELIN-2981]

How should this be tested?

First time? Setup Travis CI as described on https://zeppelin.apache.org/contribution/contributions.html#continuous-integration
Strongly recommended: add automated unit tests for any new or changed behavior
Outline any manual steps to test the PR here.

Screenshots (if appropriate)
Questions:

Does the licenses files need update?
Is there breaking changes for older versions?
Does this needs documentation?

LGTM

Thanks @wary Merge it if no more discussion.

@wary Before I merge this, could you update the title and add '[MINOR]' ?

@zjffdu done！thx for code review

@wary Sorry for late response, the CI seems failed, could you help check that ? It may due to flaky test, you can try to rerun it.

@zjffdu  all check passed!

@zjffdu  as I checked, the reason of the ci failure is not related to this change， maybe need to create a new pull request to resolve

CI Failure is fixed, please rebase and rerun CI, thanks @wary

@wary CI is stuck, could you try again ?

@zjffdu  done! please help review my another pull request [ZEPPELIN-3021]  If you are convenient， thank you very much

@zjffdu  done!

@wary Your PR is mixed with other PR, could you clean it ? Thanks


Query multiple entries

Support querying multiple entries in single query? Should do multiple ids instead of single id? How to be atomically consistent? Should do search / filter without knowing ids?

Querying multiple entries with pagination is now possible with #19
No search / filter yet.


evsgp4 cannot convert an array of floats

The function evsgp4 evaluates NORAD two-line element data for earth orbiting spacecraft. Here are the inputs and returns:
    Inputs:
      float    et     = Epoch in seconds past ephemeris epoch J2000.
      float[8] geophs = Geophysical constants
      float[*] elems  = Two-line element data

    Returns:
      float[6] state  = Evaluated state

This unit test:
import cspyce as cs
import numpy as np
import numpy.testing as npt

from gettestkernels import(
    CoreKernels,
    ExtraKernels
    )

noadpn = ["J2", "J3", "J4", "KE", "QO", "SO", "ER", "AE"]
cs.furnsh(CoreKernels.lsk)
cs.furnsh(ExtraKernels.geophKer)
tle = [
    "1 43908U 18111AJ  20146.60805006  .00000806  00000-0  34965-4 0  9999",
    "2 43908  97.2676  47.2136 0020001 220.6050 139.3698 15.24999521 78544",
]
geophs = list([cs.bodvcd(399, _) for _ in noadpn])
_, elems = cs.getelm(1957, tle)
et = cs.str2et("2020-05-26 02:25:00")
state = cs.evsgp4(et, geophs, elems)
expected_state = np.array(
    [
        -4644.60403398,
        -5038.95025539,
        -337.27141116,
        -0.45719025,
        0.92884817,
        -7.55917355,
    ]
)
npt.assert_array_almost_equal(expected_state, state)

is currently failing with the following message:
TypeError: SPICE(INVALIDTYPE) -- evsgp4 -- Array of type "double" required in module evsgp4; input argument could not be converted

This is odd because all values being put into the function are floats (doubles), so it shouldn’t be failing on that alone. Putting et in an array does not fix the problem.

The problem isn't et.
If you run the test using a debugger, you'll see that the value of geophs is
[array([0.00108262]), array([-2.53881e-06]), array([-1.65597e-06]), array([0.07436692]), array([120.]), array([78.]), array([6378.135]), array([1.])]

which isn't an array of floats or a tuple of floats.  It's an array of float arrays.
I changed the code to be:
geophs = [cs.bodvcd(399, _)[0] for _ in noadpn]

and everything works fine.

This fixed it! Thank you.


wtf is going on

can someone tell me wut I need to do, cuz I have all the correct packages installed.
source/PlayState.hx:53: characters 8-28 : Type not found : hxcodec.VideoHandler
source/PlayState.hx:54: characters 8-27 : Type not found : hxcodec.VideoSprite
source/PlayState.hx:297: characters 13-24 : Type not found : VideoSprite
source/Main.hx:24: lines 24-136 : ... Defined in this class
source/PlayState.hx:144: characters 2-47 : Method set_songSpeed required by property songSpeed is missing
source/TitleState.hx:391: characters 25-29 : Accessing this field requires a system platform (php,neko,cpp,etc.)
source/TitleState.hx:396: characters 19-23 : Accessing this field requires a system platform (php,neko,cpp,etc.)
source/MainMenuState.hx:1005: characters 17-27 : Type not found : FileSystem
source/MainMenuState.hx:1071: characters 55-67 : Type not found : OpenFlAssets
source/MainMenuState.hx:1080: characters 21-30 : flixel.system.frontEnds.SoundFrontEnd has no field soundTray
source/MainMenuState.hx:1081: characters 21-30 : flixel.system.frontEnds.SoundFrontEnd has no field soundTray
source/MainMenuState.hx:1084: characters 17-33 : Class<CppAPI> has no field removeWindowIcon
source/MainMenuState.hx:1090: characters 68-72 : Accessing this field requires a system platform (php,neko,cpp,etc.)
source/MainMenuState.hx:1092: characters 18-35 : Class<CppAPI> has no field _setWindowLayered
source/MainMenuState.hx:1096: characters 17-21 : Accessing this field requires a system platform (php,neko,cpp,etc.)
source/lime/_internal/backend/native/NativeApplication.hx:376: characters 24-30 : lime.ui._Window.WindowBackend has no field render
source/lime/_internal/backend/native/NativeApplication.hx:381: characters 25-36 : lime.ui._Window.WindowBackend has no field contextFlip
source/lime/_internal/backend/native/NativeApplication.hx:386: characters 27-38 : lime.ui._Window.WindowBackend has no field useHardware
source/lime/_internal/backend/native/NativeApplication.hx:405: characters 27-38 : lime.ui._Window.WindowBackend has no field useHardware
source/StoryMenuState.hx:22: characters 8-28 : Type not found : hxcodec.VideoHandler
source/StoryMenuState.hx:23: characters 8-27 : Type not found : hxcodec.VideoSprite
source/StoryMenuState.hx:54: characters 10-21 : Type not found : VideoSprite
source/MainMenuState.hx:46: lines 46-1118 : ... Defined in this class
source/MMOptions.hx:4: characters 8-30 : Type not found : discord_rpc.DiscordRpc
source/MMOptions.hx:1469: characters 8-21 : Type not found : DiscordClient
source/MMOptions.hx:1473: characters 8-21 : Type not found : DiscordClient
source/CustomFreeplayState.hx:434: characters 13-21 : Class<PlayState> has no field getspeed
source/CustomFreeplayState.hx:654: characters 15-28 : Class<PlayState> has no field campaignScore
source/CustomFreeplayState.hx:655: characters 15-29 : Class<PlayState> has no field campaignMisses
source/PauseSubState.hx:76: characters 16-28 : Class<PlayState> has no field deathCounter
source/PauseSubState.hx:97: characters 14-22 : Class<PlayState> has no field ytbutton
source/PauseSubState.hx:98: characters 14-22 : Class<PlayState> has no field ytbutton
source/PauseSubState.hx:99: characters 14-22 : Class<PlayState> has no field ytbutton
source/PauseSubState.hx:100: characters 43-51 : Class<PlayState> has no field ytbutton
source/PauseSubState.hx:101: characters 43-51 : Class<PlayState> has no field ytbutton
source/PauseSubState.hx:103: characters 43-47 : Class<PlayState> has no field ytUI
source/PauseSubState.hx:187: characters 37-42 : Class<PlayState> has no field autor
source/PauseSubState.hx:213: characters 51-63 : Class<PlayState> has no field deathCounter
source/PauseSubState.hx:457: characters 18-26 : Class<PlayState> has no field ytbutton
source/PauseSubState.hx:458: characters 18-26 : Class<PlayState> has no field ytbutton
source/PauseSubState.hx:459: characters 18-26 : Class<PlayState> has no field ytbutton
source/PauseSubState.hx:460: characters 47-55 : Class<PlayState> has no field ytbutton
source/PauseSubState.hx:461: characters 47-55 : Class<PlayState> has no field ytbutton
source/PauseSubState.hx:463: characters 47-51 : Class<PlayState> has no field ytUI
source/PauseSubState.hx:512: characters 18-26 : Class<PlayState> has no field ytbutton
source/PauseSubState.hx:513: characters 18-26 : Class<PlayState> has no field ytbutton
source/PauseSubState.hx:514: characters 18-26 : Class<PlayState> has no field ytbutton
source/PauseSubState.hx:515: characters 47-55 : Class<PlayState> has no field ytbutton
source/PauseSubState.hx:516: characters 47-55 : Class<PlayState> has no field ytbutton
source/PauseSubState.hx:518: characters 47-51 : Class<PlayState> has no field ytUI
source/PauseSubState.hx:543: characters 15-27 : Class<CppAPI> has no field setWallpaper
source/PauseSubState.hx:546: characters 21-29 : Class<PlayState> has no field getspeed
source/PauseSubState.hx:548: characters 41-49 : Class<PlayState> has no field getspeed
source/PauseSubState.hx:565: characters 18-30 : Class<PlayState> has no field deathCounter
source/PauseSubState.hx:566: characters 18-30 : Class<PlayState> has no field seenCutscene
source/PauseSubState.hx:569: characters 18-29 : Class<PlayState> has no field virtualmode
source/WarpState.hx:1334: characters 16-29 : Class<PlayState> has no field campaignScore
source/WarpState.hx:1335: characters 16-30 : Class<PlayState> has no field campaignMisses
source/PartyState.hx:518: characters 21-34 : Class<PlayState> has no field campaignScore
source/PartyState.hx:519: characters 21-35 : Class<PlayState> has no field campaignMisses
source/WarpState.hx:2263: characters 21-34 : Class<PlayState> has no field campaignScore
source/WarpState.hx:2264: characters 21-35 : Class<PlayState> has no field campaignMisses
source/PatchNotes.hx:231: characters 19-23 : Type not found : File
source/FunkinLua.hx:1580: characters 24-30 : PlayState has no field camHUD
source/FunkinLua.hx:1582: characters 24-30 : PlayState has no field camEst
source/FunkinLua.hx:1584: characters 24-32 : PlayState has no field camOther
source/FunkinLua.hx:1586: characters 22-29 : PlayState has no field camGame
source/editors/ChartingState.hx:213: characters 12-24 : Class<CppAPI> has no field setWallpaper
source/Note.hx:411: characters 36-47 : Class<PlayState> has no field daPixelZoom
source/Note.hx:366: characters 26-37 : Class<PlayState> has no field daPixelZoom
source/StrumNote.hx:47: characters 36-47 : Class<PlayState> has no field daPixelZoom
source/NoteSplash.hx:77: characters 45-56 : Class<PlayState> has no field daPixelZoom
source/editors/EditorPlayState.hx:726: characters 59-70 : Class<PlayState> has no field daPixelZoom
source/editors/EditorPlayState.hx:727: characters 63-74 : Class<PlayState> has no field daPixelZoom
source/editors/EditorPlayState.hx:757: characters 64-75 : Class<PlayState> has no field daPixelZoom
/usr/share/haxe/lib/flixel-addons/3,1,1/flixel/addons/display/FlxBackdrop.hx:94: characters 7-25 : flixel.FlxType should be flixel.util.FlxAxes
/usr/share/haxe/lib/flixel-addons/3,1,1/flixel/addons/display/FlxBackdrop.hx:142: characters 7-25 : flixel.FlxType should be flixel.util.FlxAxes
/usr/share/haxe/lib/flixel-addons/3,1,1/flixel/addons/display/FlxBackdrop.hx:150: characters 18-19 : flixel.util.FlxAxes has no field x
/usr/share/haxe/lib/flixel-addons/3,1,1/flixel/addons/display/FlxBackdrop.hx:151: characters 18-19 : flixel.util.FlxAxes has no field y
/usr/share/haxe/lib/flixel-addons/3,1,1/flixel/addons/display/FlxBackdrop.hx:413: characters 7-25 : flixel.FlxType should be flixel.util.FlxAxes
/usr/share/haxe/lib/flixel-addons/3,1,1/flixel/addons/display/FlxBackdrop.hx:419: characters 21-22 : flixel.util.FlxAxes has no field x
/usr/share/haxe/lib/flixel-addons/3,1,1/flixel/addons/display/FlxBackdrop.hx:420: characters 21-22 : flixel.util.FlxAxes has no field y
/usr/share/haxe/lib/flixel-addons/3,1,1/flixel/addons/display/FlxBackdrop.hx:423: characters 21-22 : flixel.util.FlxAxes has no field x
/usr/share/haxe/lib/flixel-addons/3,1,1/flixel/addons/display/FlxBackdrop.hx:424: characters 21-22 : flixel.util.FlxAxes has no field y
/usr/share/haxe/lib/flixel-addons/3,1,1/flixel/addons/display/FlxBackdrop.hx:426: characters 21-22 : flixel.util.FlxAxes has no field x
/usr/share/haxe/lib/flixel-addons/3,1,1/flixel/addons/display/FlxBackdrop.hx:427: characters 21-22 : flixel.util.FlxAxes has no field y
/usr/share/haxe/lib/flixel-addons/3,1,1/flixel/addons/display/FlxBackdrop.hx:429: characters 21-22 : flixel.util.FlxAxes has no field x
/usr/share/haxe/lib/flixel-addons/3,1,1/flixel/addons/display/FlxBackdrop.hx:429: characters 44-45 : flixel.util.FlxAxes has no field x
/usr/share/haxe/lib/flixel-addons/3,1,1/flixel/addons/display/FlxBackdrop.hx:430: characters 21-22 : flixel.util.FlxAxes has no field y
/usr/share/haxe/lib/flixel-addons/3,1,1/flixel/addons/display/FlxBackdrop.hx:430: characters 44-45 : flixel.util.FlxAxes has no field y
/usr/share/haxe/lib/flixel-addons/3,1,1/flixel/addons/display/FlxBackdrop.hx:450: characters 20-21 : flixel.util.FlxAxes has no field x
/usr/share/haxe/lib/flixel-addons/3,1,1/flixel/addons/display/FlxBackdrop.hx:456: characters 20-21 : flixel.util.FlxAxes has no field y
/usr/share/haxe/lib/flixel-addons/3,1,1/flixel/addons/display/FlxBackdrop.hx:493: characters 30-31 : flixel.util.FlxAxes has no field x
/usr/share/haxe/lib/flixel-addons/3,1,1/flixel/addons/display/FlxBackdrop.hx:494: characters 30-31 : flixel.util.FlxAxes has no field y
/usr/share/haxe/lib/flixel-addons/3,1,1/flixel/addons/display/FlxBackdrop.hx:191: characters 7-25 : flixel.FlxType should be flixel.util.FlxAxes
/usr/share/haxe/lib/flixel-addons/3,1,1/flixel/addons/display/FlxBackdrop.hx:209: characters 7-25 : flixel.FlxType should be flixel.util.FlxAxes
/usr/share/haxe/lib/flixel-addons/3,1,1/flixel/addons/display/FlxBackdrop.hx:212: characters 19-20 : flixel.util.FlxAxes has no field x
/usr/share/haxe/lib/flixel-addons/3,1,1/flixel/addons/display/FlxBackdrop.hx:221: characters 19-20 : flixel.util.FlxAxes has no field y
/usr/share/haxe/lib/flixel-addons/3,1,1/flixel/addons/display/FlxBackdrop.hx:262: characters 7-25 : flixel.FlxType should be flixel.util.FlxAxes
/usr/share/haxe/lib/flixel-addons/3,1,1/flixel/addons/display/FlxBackdrop.hx:312: characters 7-25 : flixel.FlxType should be flixel.util.FlxAxes
/usr/share/haxe/lib/flixel-addons/3,1,1/flixel/addons/display/FlxBackdrop.hx:316: characters 19-20 : flixel.util.FlxAxes has no field x
/usr/share/haxe/lib/flixel-addons/3,1,1/flixel/addons/display/FlxBackdrop.hx:325: characters 19-20 : flixel.util.FlxAxes has no field y
/usr/share/haxe/lib/flixel-addons/3,1,1/flixel/addons/display/FlxBackdrop.hx:182: characters 7-25 : flixel.FlxType should be flixel.util.FlxAxes
/usr/share/haxe/lib/flixel-addons/3,1,1/flixel/addons/effects/chainable/FlxEffectSprite.hx:137: characters 49-58 : flixel.animation.FlxAnimationController has no field numFrames
source/modchart/modifiers/AlphaModifier.hx:91: characters 110-118 : Class<PlayState> has no field instance
source/modchart/modifiers/AlphaModifier.hx:93: characters 14-22 : Class<PlayState> has no field instance
source/modchart/modifiers/BeatModifier.hx:16: characters 30-38 : Class<PlayState> has no field instance
source/modchart/modifiers/ReverseModifier.hx:126: characters 49-57 : Class<PlayState> has no field instance
/usr/share/haxe/lib/flixel-addons/3,1,1/flixel/addons/transition/FlxTransitionableState.hx:81: characters 20-30 : Field startOutro is declared 'override' but doesn't override any field
source/openfl/display/FPS.hx:94: characters 83-94 : Class<PlayState> has no field virtualmode

run the bat file in the mod folder


Reject duplicate UTXO spends and nullifier reveals across mempool transactions

Motivation
Mempools typically require a consistent set of transactions, which could all be mined into a single block.
In order to support this restriction, Zebra should reject transactions that:

spend outputs that are already spent by existing mempool transactions
reveal nullifiers that are already revealed by existing mempool transactions

If we make this change, we should also reject transactions that duplicate spends in recently committed blocks (#2631).

Hey team! Please add your planning poker estimate with ZenHub @conradoplg @dconnolly @jvff @oxarbitrage @upbqdn


UnhandledPromiseRejectionWarning: Error: Evaluation failed

Running a clean install, using your logo.svg and your code:
const svgToImg = require("svg-to-img");
(async () => {
  const image = await svgToImg.from("logo.svg").toPng();
  console.log(image);
})();

Result in:
(node:2990) UnhandledPromiseRejectionWarning: Error: Evaluation failed: Error: Malformed SVG
    at Image.onError (__puppeteer_evaluation_script__:57:20)
    at ExecutionContext.evaluateHandle (/Users/xxx/test/node_modules/puppeteer/lib/ExecutionContext.js:90:15)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:189:7)
  -- ASYNC --
    at ExecutionContext.<anonymous> (/Users/xxx/test/node_modules/puppeteer/lib/helper.js:144:27)
    at ExecutionContext.evaluate (/Users/xxx/test/node_modules/puppeteer/lib/ExecutionContext.js:58:31)
    at ExecutionContext.<anonymous> (/Users/xxx/test/node_modules/puppeteer/lib/helper.js:145:23)
    at Frame.evaluate (/Users/xxx/test/node_modules/puppeteer/lib/FrameManager.js:447:20)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:189:7)
  -- ASYNC --
    at Frame.<anonymous> (/Users/xxx/test/node_modules/puppeteer/lib/helper.js:144:27)
    at Page.evaluate (/Users/xxx/test/node_modules/puppeteer/lib/Page.js:777:43)
    at Page.<anonymous> (/Users/xxx/test/node_modules/puppeteer/lib/helper.js:145:23)
    at convertSvg (/Users/xxx/test/node_modules/svg-to-img/dist/index.js:66:31)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:189:7)

Obviously seems like something is broken in later versions of puppeteer, might be a good call to lock down versions in package.json to prevent future issues like these.

npm uninstall puppeteer --save
npm install<EMAIL_ADDRESS>--save
hope this helps

Thanks for reporting the issue. The solution was to lock the dependencies.

https://github.com/etienne-martin/svg-to-img/commit/4d872d87c908e2bd2ac975fe31a38c3cbb95cbee

I still have the same problem.

any solution?

any solution?

Just use sharp JS
const svgBuffer = Buffer.from(mySVG);
const image = await sharp(svgBuffer).toFormat("png").toBuffer();
const imageSource = data:image/png;base64,${image.toString("base64")};


Improvement[Community] Improve Document Loaders and Splitters

Fix word spelling error
Add static method decorator
Fix language splitter

@efriis @eyurtsev @ccurme Please review this pr


Support for more complex status effects

Status effects need a lot of improvements.

[ ] RSI support, for animated status effects.
[x] Layer support for complex status effects (complex body health doll with part-specific damage)

note in the injazz mockups, it seems like health is not part of the status effects and is its own separate thing so I'm not sure what other statuses might need "layer" support. The RSI support would be needed though.

nvm, I misread the mockups (was looking at the combat doll), I am not sure where the health doll is going to be based on those mockups

LayeredTextureRect essentially completes the second point of this issue

They support RSI and animations now


Provide method to get all routes

What problem does this feature solve?
If an application is split into several Vue components/libraries, each component can add their specific routes using router.addRoutes(array).
In the main application we then want to dynamically create menu items from all available routes. Currently there seems to be no way to get all routes, including those added with addRoutes().
We've done a workaround by importing routes manually from all included components and appending them into one array. This array is then used when constructing the router instance. It's a lot of boilerplate and easy to miss an import. A Router.getRoutes() method would really help in this use-case.
What does the proposed API look like?
router.getRoutes() or router.getAllRoutes() that returns an array of route configurations.

Yes, this is somewhat important data to get.
I did workaround for myself like
(function(f) {
  VueRouter.prototype._allRoutes = null
  VueRouter.prototype.allRoutes = function allRoutes () {
    return this._allRoutes
  }
  VueRouter.prototype.addRoutes = function addRoutes (routes = []) {
    if (this._allRoutes === null) { // init
      this._allRoutes = this.options.routes
    }
    routes.forEach(function(r) {
      // TODO: replace unique paths
      this._allRoutes.push(r)
    }.bind(this))
    return f.apply(this, arguments);
  }
})(VueRouter.prototype.addRoutes)

Vue.use(VueRouter)

const router = new VueRouter({
  routes: [
    {path: '/', component: require('./pages/Index.vue').default},
  ]
})

router.addRoutes([{path: '/about', component: require('./pages/About.vue').default},])
router.addRoutes([{path: '*', component: require('./pages/Error404.vue').default}])

console.log('ALL ROUTERS',router.allRoutes()) // 3 paths here

but it doesn't work for children and same path routes.

It will be good to have them all in one place, as for example here: router.options.routes.
All defined routes and all added dynamically. Can we have it somehow?

I've tried a simple solution with returning the pathMap also from the matcher, and make a getter on main instance: getRoutes. What do you think?
https://github.com/iamzozo/vue-router/commit/94145b97971050698a141275c368b1731f70f5aa

@iamnotblank thanks! This method is unlikely to be added to the current version of Vue Router to avoid adding more breaking changes 😅
It will be on the next version though, as part of the Dynamic Routing API (https://github.com/vuejs/rfcs/pull/122)

Added at 6bc30aa with limited functionality compared to v4

Added at 6bc30aa with limited functionality compared to v4


PyTorch port?

Any plans to do this? I might be interested to try working on this if not

Just do it!

We've gotten a lot of messages asking for a PyTorch port. We have no current plans to make one ourselves. We would love + be grateful for someone to take it on!!
There was one other message from someone saying they might make a port (as opposed to just wishing there was one): https://mastodon.social/@Sdatkinson/109378948264886553
One quick high level pieces of advice:

I would choose a simple, multi-tensor, optimization problem, and make sure the JAX and PyTorch versions generate the same optimization trajectory on both. When porting a NN there are a lot of ways to implement a subtly different function that still somewhat works.

Thank you! And let us know how it goes!!


updated maratis (3.21-beta)

Changes to a cask
Editing an existing cask

[x] Commit message includes cask’s name (and new version, if applicable).
[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} left no offenses.

Merged as af789d1f5e52164fb62a2111a045353d8fdc3757.


Add ability to import schema from node_modules

https://graphql-code-generator.com/docs/getting-started/schema-field
I see all kinds of options to load schema, but one I think is still kinda missing :)
What do you think about to add schema resolution from regular JS modules?
Example:
schema:
  -<EMAIL_ADDRESS>
Where @revolut/our-awesome-schema is the name of the module.
I assume I can hack around it right now like that.
schema:
  - 'placeholder'
      loader: my-js-loader.js

my-js-loader.js
const { buildSchema } = require('graphql');
const { readFileSync } = require('fs');

module.exports = function() {
  return buildSchema(
    readFileSync(
      `${require.resolve("@revolut/our-awesome-schema")}/schema.graphql`,
      { encoding: 'utf-8' }
      )
    );
};

But it still requires the creation of a file in the root of my module which is a bummer.

You can do it now, because codegen will use require. Just add noPluck and it will do require automatically and load the file from there.


Fix CMake build in Windows for CMAKE_MODULE_PATH force to use "/"

We get same issues with #1321,  this PR should be fix this issue.
CMake Error at Z:/PycharmProjects/maya_cvwrap/.rez_build/platform-windows/maya-2023/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (set):
  Syntax error in cmake code at

    Z:/PycharmProjects/maya_cvwrap/.rez_build/platform-windows/maya-2023/CMakeFiles/CMakeTmp/CMakeLists.txt:2

  when parsing string

    G:\pkg\rez\2.113.0\platform-windows\rezplugins\build_system\cmake_files

  Invalid character escape '\r'.

Hi @loonghao , thanks for taking the time to open a PR. have you looked at https://github.com/AcademySoftwareFoundation/rez/pull/1475? I think it would solve your issue. Basically, doing what you suggest is only fixing part of the problem. See my comment at https://github.com/AcademySoftwareFoundation/rez/issues/1321#issuecomment-1204712550.
https://github.com/AcademySoftwareFoundation/rez/pull/1475 fixes the real problem. The title says that it's GitBash related, but it's not just related to that. Do you want to give it a go and see if it fixes the issue?

@JeanChristopheMorinPerso I have tested #1475 this can fixes the real problem, closing the PR.

Great to hear that it fixes the issue! Did you try with enable_path_normalization set ot True or False?

I just build from the branch to local, and then the config was not modified. enable_path_normalization=False


Typo in Linux uninstallation docs

What is the issue?
At the bottom of docs/linux.md, it should say sudo rm -r /usr/lib/ollama/ instead of sudo rm -r /usr/share/ollama.
OS
Linux
GPU
No response
CPU
No response
Ollama version
No response

Hey @jasondunsmore ,
This section of FAQ is about uninstalling pulled models, which are actually stored in /usr/share/ollama and not /usr/lib/ollama
Quote (emphasis is my own):

Remove the downloaded models and Ollama service user and group:
sudo rm -r /usr/share/ollama
sudo userdel ollama
sudo groupdel ollama

Existing text seems correct to me.

The uninstall docs line up with the install script and docs above.  /usr/share/ollama is the correct directory to remove


Fix goldenspike pipeline and config files

Problem:
The current pipeline files for goldenspike can no longer be run out of the box.
Solution:
I'm currently troubleshooting this (and am making final checks on a working version), using both current files and outputs from goldenspike notebook.
Notes:
Some problems with the current files:

missing config entries for entire stages that presumably have been added since its creation
reading in a pkl when tables_io only wants a pq

Some problems with pipeline file and config created by goldenspike notebook:

missing at least one field in its output yml (site:name:local)
refers to data files created only by running the notebook
creates absolute paths that need to be made relative (and are mixed between goldenspike_examples/ and goldenspike_data/)
requires a pretrained flow (I placed it goldenspike_data/data/pretrained_flow.pkl), but outputs goldenspike_data/output/goldenspike_data/data/pretrained_flow.pkl (maybe this is desired behavior? either way seems low priority for the moment)

I could make a separate issue for this, but I think it might be solveable along the way to addressing this one -- feel free to separate it out if it's too far off. The readme for the Golden Spike examples should describe the non-notebook version of the goldenspike pipeline and show how to run it at the command line. It would be nice if it also explained the roles of the two .yml files with nearly the same name (and/or renamed one to disambiguate).


[curl] Build failure

Package: curl[core,non-http,openssl,ssh]:arm64-osx -> 8.1.2
Host Environment

Host: arm64-osx
Compiler: AppleClang <IP_ADDRESS>30022
vcpkg-tool version: 2999-12-31-unknownhash-debug
vcpkg-scripts version: 4a1035927 2023-06-28 (67 minutes ago)

To Reproduce
vcpkg install --enforce-port-checks --allow-unsupported
Failure logs
-- Using cached curl-curl-curl-8_1_2.tar.gz.
-- Extracting source /Users/leanderSchulten/git_projekte/vcpkg/downloads/curl-curl-curl-8_1_2.tar.gz
-- Applying patch 0002_fix_uwp.patch
-- Applying patch 0005_remove_imp_suffix.patch
-- Applying patch 0012-fix-dependency-idn2.patch
-- Applying patch 0020-fix-pc-file.patch
-- Applying patch 0022-deduplicate-libs.patch
-- Applying patch mbedtls-ws2_32.patch
-- Applying patch export-components.patch
-- Applying patch 0023-fix-find-cares.patch
-- Using source at /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/curl/src/curl-8_1_2-48a3152245.clean
-- Found external ninja('1.11.1').
-- Configuring arm64-osx
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
    Command failed: /opt/homebrew/bin/ninja -v
    Working Directory: /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/curl/arm64-osx-rel/vcpkg-parallel-configure
    Error code: 1
    See logs for more information:
      /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/curl/config-arm64-osx-dbg-CMakeCache.txt.log
      /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/curl/config-arm64-osx-rel-CMakeCache.txt.log
      /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/curl/config-arm64-osx-out.log

Call Stack (most recent call first):
  vcpkg_installed/arm64-osx/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:252 (vcpkg_execute_required_process)
  ports/curl/portfile.cmake:65 (vcpkg_cmake_configure)
  scripts/ports.cmake:147 (include)

/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/curl/config-arm64-osx-out.log
[1/2] "/Users/leanderSchulten/git_projekte/vcpkg/downloads/tools/cmake-3.25.1-osx/cmake-3.25.1-macos-universal/CMake.app/Contents/bin/cmake" -E chdir ".." "/Users/leanderSchulten/git_projekte/vcpkg/downloads/tools/cmake-3.25.1-osx/cmake-3.25.1-macos-universal/CMake.app/Contents/bin/cmake" "/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/curl/src/curl-8_1_2-48a3152245.clean" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=/Users/leanderSchulten/git_projekte/vcpkg/packages/curl_arm64-osx" "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" "-DCMAKE_PROJECT_INCLUDE=/Users/leanderSchulten/git_projekte/vcpkg/ports/curl/cmake-project-include.cmake" "-DUSE_NGHTTP2=OFF" "-DCURL_USE_WOLFSSL=OFF" "-DCURL_USE_OPENSSL=ON" "-DCURL_USE_MBEDTLS=OFF" "-DCURL_USE_LIBSSH2=ON" "-DBUILD_CURL_EXE=OFF" "-DENABLE_ARES=OFF" "-DCURL_WINDOWS_SSPI=OFF" "-DCURL_BROTLI=OFF" "-DCURL_USE_SCHANNEL=OFF" "-DCURL_USE_SECTRANSP=OFF" "-DUSE_LIBIDN2=OFF" "-DUSE_WIN32_IDN=OFF" "-DUSE_WIN32_LDAP=OFF" "-DENABLE_WEBSOCKETS=OFF" "-DHTTP_ONLY=OFF" "-DCURL_DISABLE_LDAP=ON" "-DBUILD_TESTING=OFF" "-DENABLE_MANUAL=OFF" "-DCURL_CA_FALLBACK=ON" "-DCURL_USE_LIBPSL=OFF" "-DCMAKE_DISABLE_FIND_PACKAGE_Perl=ON" "-DCMAKE_MAKE_PROGRAM=/opt/homebrew/bin/ninja" "-DCMAKE_SYSTEM_NAME=Darwin" "-DBUILD_SHARED_LIBS=OFF" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=/Users/leanderSchulten/git_projekte/vcpkg/scripts/toolchains/osx.cmake" "-DVCPKG_TARGET_TRIPLET=arm64-osx" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=external" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=/Users/leanderSchulten/git_projekte/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=arm64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=/Users/leanderSchulten/git_projekte/vcpkg" "-D_VCPKG_INSTALLED_DIR=/Users/leanderSchulten/git_projekte/vcpkg/vcpkg_installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DCMAKE_OSX_ARCHITECTURES=arm64"
FAILED: ../CMakeCache.txt
"/Users/leanderSchulten/git_projekte/vcpkg/downloads/tools/cmake-3.25.1-osx/cmake-3.25.1-macos-universal/CMake.app/Contents/bin/cmake" -E chdir ".." "/Users/leanderSchulten/git_projekte/vcpkg/downloads/tools/cmake-3.25.1-osx/cmake-3.25.1-macos-universal/CMake.app/Contents/bin/cmake" "/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/curl/src/curl-8_1_2-48a3152245.clean" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=/Users/leanderSchulten/git_projekte/vcpkg/packages/curl_arm64-osx" "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" "-DCMAKE_PROJECT_INCLUDE=/Users/leanderSchulten/git_projekte/vcpkg/ports/curl/cmake-project-include.cmake" "-DUSE_NGHTTP2=OFF" "-DCURL_USE_WOLFSSL=OFF" "-DCURL_USE_OPENSSL=ON" "-DCURL_USE_MBEDTLS=OFF" "-DCURL_USE_LIBSSH2=ON" "-DBUILD_CURL_EXE=OFF" "-DENABLE_ARES=OFF" "-DCURL_WINDOWS_SSPI=OFF" "-DCURL_BROTLI=OFF" "-DCURL_USE_SCHANNEL=OFF" "-DCURL_USE_SECTRANSP=OFF" "-DUSE_LIBIDN2=OFF" "-DUSE_WIN32_IDN=OFF" "-DUSE_WIN32_LDAP=OFF" "-DENABLE_WEBSOCKETS=OFF" "-DHTTP_ONLY=OFF" "-DCURL_DISABLE_LDAP=ON" "-DBUILD_TESTING=OFF" "-DENABLE_MANUAL=OFF" "-DCURL_CA_FALLBACK=ON" "-DCURL_USE_LIBPSL=OFF" "-DCMAKE_DISABLE_FIND_PACKAGE_Perl=ON" "-DCMAKE_MAKE_PROGRAM=/opt/homebrew/bin/ninja" "-DCMAKE_SYSTEM_NAME=Darwin" "-DBUILD_SHARED_LIBS=OFF" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=/Users/leanderSchulten/git_projekte/vcpkg/scripts/toolchains/osx.cmake" "-DVCPKG_TARGET_TRIPLET=arm64-osx" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=external" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=/Users/leanderSchulten/git_projekte/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=arm64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=/Users/leanderSchulten/git_projekte/vcpkg" "-D_VCPKG_INSTALLED_DIR=/Users/leanderSchulten/git_projekte/vcpkg/vcpkg_installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DCMAKE_OSX_ARCHITECTURES=arm64"
-- The C compiler identification is AppleClang <IP_ADDRESS>30022
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at /Users/leanderSchulten/git_projekte/vcpkg/ports/curl/cmake-project-include.cmake:75 (get_target_property):
  get_target_property() called with non-existent target "Libssh2::libssh2".
Call Stack (most recent call first):
  CMakeLists.txt:72 (project)

-- curl version=[8.1.2-DEV]
-- Picky compiler options: -Wextra -Wall -pedantic -Wbad-function-cast -Wconversion -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-long-long -Wno-multichar -Wpointer-arith -Wshadow -Wsign-compare -Wundef -Wunused -Wwrite-strings -Wcast-align -Wdeclaration-after-statement -Wempty-body -Wendif-labels -Wfloat-equal -Wignored-qualifiers -Wno-format-nonliteral -Wno-sign-conversion -Wno-system-headers -Wstrict-prototypes -Wtype-limits -Wvla -Wshift-sign-overflow -Wshorten-64-to-32 -Wdouble-promotion -Wenum-conversion -Wunused-const-variable -Wcomma -Wmissing-variable-declarations -Wassign-enum -Wextra-semi-stmt
-- Performing Test HAVE_SOCKADDR_IN6_SIN6_ADDR
-- Performing Test HAVE_SOCKADDR_IN6_SIN6_ADDR - Success
-- Performing Test HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID
-- Performing Test HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID - Success
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Looking for connect in socket;-framework SystemConfiguration
-- Looking for connect in socket;-framework SystemConfiguration - not found
-- Looking for gethostname
-- Looking for gethostname - found
-- Found OpenSSL: /Users/leanderSchulten/git_projekte/vcpkg/vcpkg_installed/arm64-osx/lib/libcrypto.a (found version "3.1.1")
-- Looking for RAND_egd
-- Looking for RAND_egd - not found
-- Looking for OPENSSL_IS_BORINGSSL
-- Looking for OPENSSL_IS_BORINGSSL - not found
-- Looking for OPENSSL_IS_AWSLC
-- Looking for OPENSSL_IS_AWSLC - not found
-- Found ZLIB: optimized;/Users/leanderSchulten/git_projekte/vcpkg/vcpkg_installed/arm64-osx/lib/libz.a;debug;/Users/leanderSchulten/git_projekte/vcpkg/vcpkg_installed/arm64-osx/debug/lib/libz.a (found version "1.2.13")
-- LDAP needs to be enabled to support LDAPS
-- Found LibSSH2: Libssh2::libssh2 (found version "1.11.0")
-- Performing Test USE_UNIX_SOCKETS
-- Performing Test USE_UNIX_SOCKETS - Success
-- Found CA bundle: /etc/ssl/cert.pem
-- Looking for include file inttypes.h
-- Looking for include file inttypes.h - found
-- Looking for include files inttypes.h, sys/filio.h
-- Looking for include files inttypes.h, sys/filio.h - found
-- Looking for 3 include files inttypes.h, ..., sys/ioctl.h
-- Looking for 3 include files inttypes.h, ..., sys/ioctl.h - found
-- Looking for 4 include files inttypes.h, ..., sys/param.h
-- Looking for 4 include files inttypes.h, ..., sys/param.h - found
-- Looking for 5 include files inttypes.h, ..., sys/poll.h
-- Looking for 5 include files inttypes.h, ..., sys/poll.h - found
-- Looking for 6 include files inttypes.h, ..., sys/resource.h
-- Looking for 6 include files inttypes.h, ..., sys/resource.h - found
-- Looking for 7 include files inttypes.h, ..., sys/select.h
-- Looking for 7 include files inttypes.h, ..., sys/select.h - found
-- Looking for 8 include files inttypes.h, ..., sys/socket.h
-- Looking for 8 include files inttypes.h, ..., sys/socket.h - found
-- Looking for 9 include files inttypes.h, ..., sys/sockio.h
-- Looking for 9 include files inttypes.h, ..., sys/sockio.h - found
-- Looking for 10 include files inttypes.h, ..., sys/stat.h
-- Looking for 10 include files inttypes.h, ..., sys/stat.h - found
-- Looking for 11 include files inttypes.h, ..., sys/time.h
-- Looking for 11 include files inttypes.h, ..., sys/time.h - found
-- Looking for 12 include files inttypes.h, ..., sys/types.h
-- Looking for 12 include files inttypes.h, ..., sys/types.h - found
-- Looking for 13 include files inttypes.h, ..., sys/un.h
-- Looking for 13 include files inttypes.h, ..., sys/un.h - found
-- Looking for 14 include files inttypes.h, ..., sys/utime.h
-- Looking for 14 include files inttypes.h, ..., sys/utime.h - not found
-- Looking for 14 include files inttypes.h, ..., sys/xattr.h
-- Looking for 14 include files inttypes.h, ..., sys/xattr.h - found
-- Looking for 15 include files inttypes.h, ..., arpa/inet.h
-- Looking for 15 include files inttypes.h, ..., arpa/inet.h - found
-- Looking for 16 include files inttypes.h, ..., arpa/tftp.h
-- Looking for 16 include files inttypes.h, ..., arpa/tftp.h - found
-- Looking for 17 include files inttypes.h, ..., fcntl.h
-- Looking for 17 include files inttypes.h, ..., fcntl.h - found
-- Looking for 18 include files inttypes.h, ..., idn2.h
-- Looking for 18 include files inttypes.h, ..., idn2.h - not found
-- Looking for 18 include files inttypes.h, ..., ifaddrs.h
-- Looking for 18 include files inttypes.h, ..., ifaddrs.h - found
-- Looking for 19 include files inttypes.h, ..., io.h
-- Looking for 19 include files inttypes.h, ..., io.h - not found
-- Looking for 19 include files inttypes.h, ..., libgen.h
-- Looking for 19 include files inttypes.h, ..., libgen.h - found
-- Looking for 20 include files inttypes.h, ..., locale.h
-- Looking for 20 include files inttypes.h, ..., locale.h - found
-- Looking for 21 include files inttypes.h, ..., net/if.h
-- Looking for 21 include files inttypes.h, ..., net/if.h - found
-- Looking for 22 include files inttypes.h, ..., netdb.h
-- Looking for 22 include files inttypes.h, ..., netdb.h - found
-- Looking for 23 include files inttypes.h, ..., netinet/in.h
-- Looking for 23 include files inttypes.h, ..., netinet/in.h - found
-- Looking for 24 include files inttypes.h, ..., netinet/tcp.h
-- Looking for 24 include files inttypes.h, ..., netinet/tcp.h - found
-- Looking for linux/tcp.h
-- Looking for linux/tcp.h - not found
-- Looking for 25 include files inttypes.h, ..., poll.h
-- Looking for 25 include files inttypes.h, ..., poll.h - found
-- Looking for 26 include files inttypes.h, ..., pwd.h
-- Looking for 26 include files inttypes.h, ..., pwd.h - found
-- Looking for 27 include files inttypes.h, ..., setjmp.h
-- Looking for 27 include files inttypes.h, ..., setjmp.h - found
-- Looking for 28 include files inttypes.h, ..., signal.h
-- Looking for 28 include files inttypes.h, ..., signal.h - found
-- Looking for 29 include files inttypes.h, ..., ssl.h
-- Looking for 29 include files inttypes.h, ..., ssl.h - not found
-- Looking for 29 include files inttypes.h, ..., stdatomic.h
-- Looking for 29 include files inttypes.h, ..., stdatomic.h - found
-- Looking for 30 include files inttypes.h, ..., stdbool.h
-- Looking for 30 include files inttypes.h, ..., stdbool.h - found
-- Looking for 31 include files inttypes.h, ..., stdint.h
-- Looking for 31 include files inttypes.h, ..., stdint.h - found
-- Looking for 32 include files inttypes.h, ..., stdlib.h
-- Looking for 32 include files inttypes.h, ..., stdlib.h - found
-- Looking for 33 include files inttypes.h, ..., string.h
-- Looking for 33 include files inttypes.h, ..., string.h - found
-- Looking for 34 include files inttypes.h, ..., strings.h
-- Looking for 34 include files inttypes.h, ..., strings.h - found
-- Looking for 35 include files inttypes.h, ..., stropts.h
-- Looking for 35 include files inttypes.h, ..., stropts.h - not found
-- Looking for 35 include files inttypes.h, ..., termio.h
-- Looking for 35 include files inttypes.h, ..., termio.h - not found
-- Looking for 35 include files inttypes.h, ..., termios.h
-- Looking for 35 include files inttypes.h, ..., termios.h - found
-- Looking for 36 include files inttypes.h, ..., time.h
-- Looking for 36 include files inttypes.h, ..., time.h - found
-- Looking for 37 include files inttypes.h, ..., unistd.h
-- Looking for 37 include files inttypes.h, ..., unistd.h - found
-- Looking for 38 include files inttypes.h, ..., utime.h
-- Looking for 38 include files inttypes.h, ..., utime.h - found
-- Looking for 39 include files inttypes.h, ..., stddef.h
-- Looking for 39 include files inttypes.h, ..., stddef.h - found
-- Looking for 40 include files inttypes.h, ..., sys/utsname.h
-- Looking for 40 include files inttypes.h, ..., sys/utsname.h - found
-- Check size of size_t
-- Check size of size_t - done
-- Check size of ssize_t
-- Check size of ssize_t - done
-- Check size of long long
-- Check size of long long - done
-- Check size of long
-- Check size of long - done
-- Check size of int
-- Check size of int - done
-- Check size of __int64
-- Check size of __int64 - failed
-- Check size of time_t
-- Check size of time_t - done
-- Looking for fchmod
-- Looking for fchmod - found
-- Looking for basename
-- Looking for basename - found
-- Looking for socket
-- Looking for socket - found
-- Looking for socketpair
-- Looking for socketpair - found
-- Looking for recv
-- Looking for recv - found
-- Looking for send
-- Looking for send - found
-- Looking for sendmsg
-- Looking for sendmsg - found
-- Looking for select
-- Looking for select - found
-- Looking for strdup
-- Looking for strdup - found
-- Looking for strtok_r
-- Looking for strtok_r - found
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for stricmp
-- Looking for stricmp - not found
-- Looking for strcmpi
-- Looking for strcmpi - not found
-- Looking for alarm
-- Looking for alarm - found
-- Looking for getppid
-- Looking for getppid - found
-- Looking for utimes
-- Looking for utimes - found
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for closesocket
-- Looking for closesocket - not found
-- Looking for sigsetjmp
-- Looking for sigsetjmp - found
-- Looking for getpass_r
-- Looking for getpass_r - not found
-- Looking for getpwuid
-- Looking for getpwuid - found
-- Looking for getpwuid_r
-- Looking for getpwuid_r - found
-- Looking for geteuid
-- Looking for geteuid - found
-- Looking for utime
-- Looking for utime - found
-- Looking for gmtime_r
-- Looking for gmtime_r - found
-- Looking for gethostbyname_r
-- Looking for gethostbyname_r - not found
-- Looking for signal
-- Looking for signal - found
-- Looking for strtoll
-- Looking for strtoll - found
-- Looking for strerror_r
-- Looking for strerror_r - found
-- Looking for siginterrupt
-- Looking for siginterrupt - found
-- Looking for getaddrinfo
-- Looking for getaddrinfo - found
-- Looking for freeaddrinfo
-- Looking for freeaddrinfo - found
-- Looking for pipe
-- Looking for pipe - found
-- Looking for ftruncate
-- Looking for ftruncate - found
-- Looking for getpeername
-- Looking for getpeername - found
-- Looking for getsockname
-- Looking for getsockname - found
-- Looking for if_nametoindex
-- Looking for if_nametoindex - found
-- Looking for getrlimit
-- Looking for getrlimit - found
-- Looking for setlocale
-- Looking for setlocale - found
-- Looking for setmode
-- Looking for setmode - found
-- Looking for setrlimit
-- Looking for setrlimit - found
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for mach_absolute_time
-- Looking for mach_absolute_time - found
-- Looking for inet_ntop
-- Looking for inet_ntop - found
-- Looking for inet_pton
-- Looking for inet_pton - found
-- Looking for fsetxattr
-- Looking for fsetxattr - found
-- Performing Curl Test HAVE_FSETXATTR_5
-- Performing Curl Test HAVE_FSETXATTR_5 - Failed
-- Performing Curl Test HAVE_FSETXATTR_6
-- Performing Curl Test HAVE_FSETXATTR_6 - Success
-- Check size of sa_family_t
-- Check size of sa_family_t - done
-- Check size of ADDRESS_FAMILY
-- Check size of ADDRESS_FAMILY - failed
-- Looking for sigaction
-- Looking for sigaction - found
-- Performing Curl Test HAVE_FCNTL_O_NONBLOCK
-- Performing Curl Test HAVE_FCNTL_O_NONBLOCK - Success
-- Performing Curl Test HAVE_IOCTLSOCKET
-- Performing Curl Test HAVE_IOCTLSOCKET - Failed
-- Performing Curl Test HAVE_IOCTLSOCKET_CAMEL
-- Performing Curl Test HAVE_IOCTLSOCKET_CAMEL - Failed
-- Performing Curl Test HAVE_IOCTLSOCKET_CAMEL_FIONBIO
-- Performing Curl Test HAVE_IOCTLSOCKET_CAMEL_FIONBIO - Failed
-- Performing Curl Test HAVE_IOCTLSOCKET_FIONBIO
-- Performing Curl Test HAVE_IOCTLSOCKET_FIONBIO - Failed
-- Performing Curl Test HAVE_IOCTL_FIONBIO
-- Performing Curl Test HAVE_IOCTL_FIONBIO - Success
-- Performing Curl Test HAVE_IOCTL_SIOCGIFADDR
-- Performing Curl Test HAVE_IOCTL_SIOCGIFADDR - Success
-- Performing Curl Test HAVE_SETSOCKOPT_SO_NONBLOCK
-- Performing Curl Test HAVE_SETSOCKOPT_SO_NONBLOCK - Failed
-- Performing Curl Test TIME_WITH_SYS_TIME
-- Performing Curl Test TIME_WITH_SYS_TIME - Success
-- Performing Curl Test HAVE_O_NONBLOCK
-- Performing Curl Test HAVE_O_NONBLOCK - Failed
-- Performing Curl Test HAVE_GETHOSTBYNAME_R_3
-- Performing Curl Test HAVE_GETHOSTBYNAME_R_3 - Failed
-- Performing Curl Test HAVE_GETHOSTBYNAME_R_5
-- Performing Curl Test HAVE_GETHOSTBYNAME_R_5 - Failed
-- Performing Curl Test HAVE_GETHOSTBYNAME_R_6
-- Performing Curl Test HAVE_GETHOSTBYNAME_R_6 - Failed
-- Performing Curl Test HAVE_GETHOSTBYNAME_R_3_REENTRANT
-- Performing Curl Test HAVE_GETHOSTBYNAME_R_3_REENTRANT - Failed
-- Performing Curl Test HAVE_GETHOSTBYNAME_R_5_REENTRANT
-- Performing Curl Test HAVE_GETHOSTBYNAME_R_5_REENTRANT - Failed
-- Performing Curl Test HAVE_GETHOSTBYNAME_R_6_REENTRANT
-- Performing Curl Test HAVE_GETHOSTBYNAME_R_6_REENTRANT - Failed
-- Performing Curl Test HAVE_IN_ADDR_T
-- Performing Curl Test HAVE_IN_ADDR_T - Success
-- Performing Curl Test HAVE_BOOL_T
-- Performing Curl Test HAVE_BOOL_T - Success
-- Performing Curl Test STDC_HEADERS
-- Performing Curl Test STDC_HEADERS - Success
-- Performing Curl Test HAVE_FILE_OFFSET_BITS
-- Performing Curl Test HAVE_FILE_OFFSET_BITS - Success
-- Performing Curl Test HAVE_VARIADIC_MACROS_C99
-- Performing Curl Test HAVE_VARIADIC_MACROS_C99 - Success
-- Performing Curl Test HAVE_VARIADIC_MACROS_GCC
-- Performing Curl Test HAVE_VARIADIC_MACROS_GCC - Success
-- Performing Curl Test HAVE_ATOMIC
-- Performing Curl Test HAVE_ATOMIC - Success
-- Check size of off_t
-- Check size of off_t - done
-- Check size of curl_off_t
-- Check size of curl_off_t - done
-- Check size of curl_socket_t
-- Check size of curl_socket_t - done
-- Performing Curl Test HAVE_GLIBC_STRERROR_R
-- Performing Curl Test HAVE_GLIBC_STRERROR_R - Failed
-- Performing Curl Test HAVE_POSIX_STRERROR_R
-- Performing Curl Test HAVE_POSIX_STRERROR_R - Success
-- Performing Curl Test HAVE_CLOCK_GETTIME_MONOTONIC
-- Performing Curl Test HAVE_CLOCK_GETTIME_MONOTONIC - Success
-- Performing Curl Test HAVE_BUILTIN_AVAILABLE
-- Performing Curl Test HAVE_BUILTIN_AVAILABLE - Success
-- Performing Test HAVE_MSG_NOSIGNAL
-- Performing Test HAVE_MSG_NOSIGNAL - Success
-- Performing Test HAVE_STRUCT_TIMEVAL
-- Performing Test HAVE_STRUCT_TIMEVAL - Success
-- Check size of struct sockaddr_storage
-- Check size of struct sockaddr_storage - done
-- Performing Test HAVE_WRITABLE_ARGV
-- Performing Test HAVE_WRITABLE_ARGV - Success
-- Enabled features: SSL IPv6 unixsockets libz AsynchDNS Largefile alt-svc HSTS NTLM HTTPS-proxy threadsafe
-- Enabled protocols: DICT FILE FTP FTPS GOPHER GOPHERS HTTP HTTPS IMAP IMAPS MQTT POP3 POP3S RTSP SCP SFTP SMB SMBS SMTP SMTPS TELNET TFTP
-- Enabled SSL backends: OpenSSL
-- Configuring incomplete, errors occurred!
See also "/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/curl/arm64-osx-rel/CMakeFiles/CMakeOutput.log".
See also "/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/curl/arm64-osx-rel/CMakeFiles/CMakeError.log".
[2/2] "/Users/leanderSchulten/git_projekte/vcpkg/downloads/tools/cmake-3.25.1-osx/cmake-3.25.1-macos-universal/CMake.app/Contents/bin/cmake" -E chdir "../../arm64-osx-dbg" "/Users/leanderSchulten/git_projekte/vcpkg/downloads/tools/cmake-3.25.1-osx/cmake-3.25.1-macos-universal/CMake.app/Contents/bin/cmake" "/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/curl/src/curl-8_1_2-48a3152245.clean" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Debug" "-DCMAKE_INSTALL_PREFIX=/Users/leanderSchulten/git_projekte/vcpkg/packages/curl_arm64-osx/debug" "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" "-DCMAKE_PROJECT_INCLUDE=/Users/leanderSchulten/git_projekte/vcpkg/ports/curl/cmake-project-include.cmake" "-DUSE_NGHTTP2=OFF" "-DCURL_USE_WOLFSSL=OFF" "-DCURL_USE_OPENSSL=ON" "-DCURL_USE_MBEDTLS=OFF" "-DCURL_USE_LIBSSH2=ON" "-DBUILD_CURL_EXE=OFF" "-DENABLE_ARES=OFF" "-DCURL_WINDOWS_SSPI=OFF" "-DCURL_BROTLI=OFF" "-DCURL_USE_SCHANNEL=OFF" "-DCURL_USE_SECTRANSP=OFF" "-DUSE_LIBIDN2=OFF" "-DUSE_WIN32_IDN=OFF" "-DUSE_WIN32_LDAP=OFF" "-DENABLE_WEBSOCKETS=OFF" "-DHTTP_ONLY=OFF" "-DCURL_DISABLE_LDAP=ON" "-DBUILD_TESTING=OFF" "-DENABLE_MANUAL=OFF" "-DCURL_CA_FALLBACK=ON" "-DCURL_USE_LIBPSL=OFF" "-DCMAKE_DISABLE_FIND_PACKAGE_Perl=ON" "-DCMAKE_MAKE_PROGRAM=/opt/homebrew/bin/ninja" "-DCMAKE_SYSTEM_NAME=Darwin" "-DBUILD_SHARED_LIBS=OFF" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=/Users/leanderSchulten/git_projekte/vcpkg/scripts/toolchains/osx.cmake" "-DVCPKG_TARGET_TRIPLET=arm64-osx" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=external" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=/Users/leanderSchulten/git_projekte/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=arm64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=/Users/leanderSchulten/git_projekte/vcpkg" "-D_VCPKG_INSTALLED_DIR=/Users/leanderSchulten/git_projekte/vcpkg/vcpkg_installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DCMAKE_OSX_ARCHITECTURES=arm64" "-DENABLE_DEBUG=ON"
FAILED: ../../arm64-osx-dbg/CMakeCache.txt
"/Users/leanderSchulten/git_projekte/vcpkg/downloads/tools/cmake-3.25.1-osx/cmake-3.25.1-macos-universal/CMake.app/Contents/bin/cmake" -E chdir "../../arm64-osx-dbg" "/Users/leanderSchulten/git_projekte/vcpkg/downloads/tools/cmake-3.25.1-osx/cmake-3.25.1-macos-universal/CMake.app/Contents/bin/cmake" "/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/curl/src/curl-8_1_2-48a3152245.clean" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Debug" "-DCMAKE_INSTALL_PREFIX=/Users/leanderSchulten/git_projekte/vcpkg/packages/curl_arm64-osx/debug" "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" "-DCMAKE_PROJECT_INCLUDE=/Users/leanderSchulten/git_projekte/vcpkg/ports/curl/cmake-project-include.cmake" "-DUSE_NGHTTP2=OFF" "-DCURL_USE_WOLFSSL=OFF" "-DCURL_USE_OPENSSL=ON" "-DCURL_USE_MBEDTLS=OFF" "-DCURL_USE_LIBSSH2=ON" "-DBUILD_CURL_EXE=OFF" "-DENABLE_ARES=OFF" "-DCURL_WINDOWS_SSPI=OFF" "-DCURL_BROTLI=OFF" "-DCURL_USE_SCHANNEL=OFF" "-DCURL_USE_SECTRANSP=OFF" "-DUSE_LIBIDN2=OFF" "-DUSE_WIN32_IDN=OFF" "-DUSE_WIN32_LDAP=OFF" "-DENABLE_WEBSOCKETS=OFF" "-DHTTP_ONLY=OFF" "-DCURL_DISABLE_LDAP=ON" "-DBUILD_TESTING=OFF" "-DENABLE_MANUAL=OFF" "-DCURL_CA_FALLBACK=ON" "-DCURL_USE_LIBPSL=OFF" "-DCMAKE_DISABLE_FIND_PACKAGE_Perl=ON" "-DCMAKE_MAKE_PROGRAM=/opt/homebrew/bin/ninja" "-DCMAKE_SYSTEM_NAME=Darwin" "-DBUILD_SHARED_LIBS=OFF" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=/Users/leanderSchulten/git_projekte/vcpkg/scripts/toolchains/osx.cmake" "-DVCPKG_TARGET_TRIPLET=arm64-osx" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=external" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=/Users/leanderSchulten/git_projekte/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=arm64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=/Users/leanderSchulten/git_projekte/vcpkg" "-D_VCPKG_INSTALLED_DIR=/Users/leanderSchulten/git_projekte/vcpkg/vcpkg_installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DCMAKE_OSX_ARCHITECTURES=arm64" "-DENABLE_DEBUG=ON"
-- The C compiler identification is AppleClang <IP_ADDRESS>30022
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at /Users/leanderSchulten/git_projekte/vcpkg/ports/curl/cmake-project-include.cmake:75 (get_target_property):
  get_target_property() called with non-existent target "Libssh2::libssh2".
Call Stack (most recent call first):
  CMakeLists.txt:72 (project)

-- curl version=[8.1.2-DEV]
-- Picky compiler options: -Wextra -Wall -pedantic -Wbad-function-cast -Wconversion -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-long-long -Wno-multichar -Wpointer-arith -Wshadow -Wsign-compare -Wundef -Wunused -Wwrite-strings -Wcast-align -Wdeclaration-after-statement -Wempty-body -Wendif-labels -Wfloat-equal -Wignored-qualifiers -Wno-format-nonliteral -Wno-sign-conversion -Wno-system-headers -Wstrict-prototypes -Wtype-limits -Wvla -Wshift-sign-overflow -Wshorten-64-to-32 -Wdouble-promotion -Wenum-conversion -Wunused-const-variable -Wcomma -Wmissing-variable-declarations -Wassign-enum -Wextra-semi-stmt
-- Performing Test HAVE_SOCKADDR_IN6_SIN6_ADDR
-- Performing Test HAVE_SOCKADDR_IN6_SIN6_ADDR - Success
-- Performing Test HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID
-- Performing Test HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID - Success
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Looking for connect in socket;-framework SystemConfiguration
-- Looking for connect in socket;-framework SystemConfiguration - not found
-- Looking for gethostname
-- Looking for gethostname - found
-- Found OpenSSL: /Users/leanderSchulten/git_projekte/vcpkg/vcpkg_installed/arm64-osx/debug/lib/libcrypto.a (found version "3.1.1")
-- Looking for RAND_egd
-- Looking for RAND_egd - not found
-- Looking for OPENSSL_IS_BORINGSSL
-- Looking for OPENSSL_IS_BORINGSSL - not found
-- Looking for OPENSSL_IS_AWSLC
-- Looking for OPENSSL_IS_AWSLC - not found
-- Found ZLIB: optimized;/Users/leanderSchulten/git_projekte/vcpkg/vcpkg_installed/arm64-osx/lib/libz.a;debug;/Users/leanderSchulten/git_projekte/vcpkg/vcpkg_installed/arm64-osx/debug/lib/libz.a (found version "1.2.13")
-- LDAP needs to be enabled to support LDAPS
-- Found LibSSH2: Libssh2::libssh2 (found version "1.11.0")
-- Performing Test USE_UNIX_SOCKETS
-- Performing Test USE_UNIX_SOCKETS - Success
-- Found CA bundle: /etc/ssl/cert.pem
-- Looking for include file inttypes.h
-- Looking for include file inttypes.h - found
-- Looking for include files inttypes.h, sys/filio.h
-- Looking for include files inttypes.h, sys/filio.h - found
-- Looking for 3 include files inttypes.h, ..., sys/ioctl.h
-- Looking for 3 include files inttypes.h, ..., sys/ioctl.h - found
-- Looking for 4 include files inttypes.h, ..., sys/param.h
-- Looking for 4 include files inttypes.h, ..., sys/param.h - found
-- Looking for 5 include files inttypes.h, ..., sys/poll.h
-- Looking for 5 include files inttypes.h, ..., sys/poll.h - found
-- Looking for 6 include files inttypes.h, ..., sys/resource.h
-- Looking for 6 include files inttypes.h, ..., sys/resource.h - found
-- Looking for 7 include files inttypes.h, ..., sys/select.h
-- Looking for 7 include files inttypes.h, ..., sys/select.h - found
-- Looking for 8 include files inttypes.h, ..., sys/socket.h
-- Looking for 8 include files inttypes.h, ..., sys/socket.h - found
-- Looking for 9 include files inttypes.h, ..., sys/sockio.h
-- Looking for 9 include files inttypes.h, ..., sys/sockio.h - found
-- Looking for 10 include files inttypes.h, ..., sys/stat.h
-- Looking for 10 include files inttypes.h, ..., sys/stat.h - found
-- Looking for 11 include files inttypes.h, ..., sys/time.h
-- Looking for 11 include files inttypes.h, ..., sys/time.h - found
-- Looking for 12 include files inttypes.h, ..., sys/types.h
-- Looking for 12 include files inttypes.h, ..., sys/types.h - found
-- Looking for 13 include files inttypes.h, ..., sys/un.h
-- Looking for 13 include files inttypes.h, ..., sys/un.h - found
-- Looking for 14 include files inttypes.h, ..., sys/utime.h
-- Looking for 14 include files inttypes.h, ..., sys/utime.h - not found
-- Looking for 14 include files inttypes.h, ..., sys/xattr.h
-- Looking for 14 include files inttypes.h, ..., sys/xattr.h - found
-- Looking for 15 include files inttypes.h, ..., arpa/inet.h
-- Looking for 15 include files inttypes.h, ..., arpa/inet.h - found
-- Looking for 16 include files inttypes.h, ..., arpa/tftp.h
-- Looking for 16 include files inttypes.h, ..., arpa/tftp.h - found
-- Looking for 17 include files inttypes.h, ..., fcntl.h
-- Looking for 17 include files inttypes.h, ..., fcntl.h - found
-- Looking for 18 include files inttypes.h, ..., idn2.h
-- Looking for 18 include files inttypes.h, ..., idn2.h - not found
-- Looking for 18 include files inttypes.h, ..., ifaddrs.h
-- Looking for 18 include files inttypes.h, ..., ifaddrs.h - found
-- Looking for 19 include files inttypes.h, ..., io.h
-- Looking for 19 include files inttypes.h, ..., io.h - not found
-- Looking for 19 include files inttypes.h, ..., libgen.h
-- Looking for 19 include files inttypes.h, ..., libgen.h - found
-- Looking for 20 include files inttypes.h, ..., locale.h
-- Looking for 20 include files inttypes.h, ..., locale.h - found
-- Looking for 21 include files inttypes.h, ..., net/if.h
-- Looking for 21 include files inttypes.h, ..., net/if.h - found
-- Looking for 22 include files inttypes.h, ..., netdb.h
-- Looking for 22 include files inttypes.h, ..., netdb.h - found
-- Looking for 23 include files inttypes.h, ..., netinet/in.h
-- Looking for 23 include files inttypes.h, ..., netinet/in.h - found
-- Looking for 24 include files inttypes.h, ..., netinet/tcp.h
-- Looking for 24 include files inttypes.h, ..., netinet/tcp.h - found
-- Looking for linux/tcp.h
-- Looking for linux/tcp.h - not found
-- Looking for 25 include files inttypes.h, ..., poll.h
-- Looking for 25 include files inttypes.h, ..., poll.h - found
-- Looking for 26 include files inttypes.h, ..., pwd.h
-- Looking for 26 include files inttypes.h, ..., pwd.h - found
-- Looking for 27 include files inttypes.h, ..., setjmp.h
-- Looking for 27 include files inttypes.h, ..., setjmp.h - found
-- Looking for 28 include files inttypes.h, ..., signal.h
-- Looking for 28 include files inttypes.h, ..., signal.h - found
-- Looking for 29 include files inttypes.h, ..., ssl.h
-- Looking for 29 include files inttypes.h, ..., ssl.h - not found
-- Looking for 29 include files inttypes.h, ..., stdatomic.h
-- Looking for 29 include files inttypes.h, ..., stdatomic.h - found
-- Looking for 30 include files inttypes.h, ..., stdbool.h
-- Looking for 30 include files inttypes.h, ..., stdbool.h - found
-- Looking for 31 include files inttypes.h, ..., stdint.h
-- Looking for 31 include files inttypes.h, ..., stdint.h - found
-- Looking for 32 include files inttypes.h, ..., stdlib.h
-- Looking for 32 include files inttypes.h, ..., stdlib.h - found
-- Looking for 33 include files inttypes.h, ..., string.h
-- Looking for 33 include files inttypes.h, ..., string.h - found
-- Looking for 34 include files inttypes.h, ..., strings.h
-- Looking for 34 include files inttypes.h, ..., strings.h - found
-- Looking for 35 include files inttypes.h, ..., stropts.h
-- Looking for 35 include files inttypes.h, ..., stropts.h - not found
-- Looking for 35 include files inttypes.h, ..., termio.h
-- Looking for 35 include files inttypes.h, ..., termio.h - not found
-- Looking for 35 include files inttypes.h, ..., termios.h
-- Looking for 35 include files inttypes.h, ..., termios.h - found
-- Looking for 36 include files inttypes.h, ..., time.h
-- Looking for 36 include files inttypes.h, ..., time.h - found
-- Looking for 37 include files inttypes.h, ..., unistd.h
-- Looking for 37 include files inttypes.h, ..., unistd.h - found
-- Looking for 38 include files inttypes.h, ..., utime.h
-- Looking for 38 include files inttypes.h, ..., utime.h - found
-- Looking for 39 include files inttypes.h, ..., stddef.h
-- Looking for 39 include files inttypes.h, ..., stddef.h - found
-- Looking for 40 include files inttypes.h, ..., sys/utsname.h
-- Looking for 40 include files inttypes.h, ..., sys/utsname.h - found
-- Check size of size_t
-- Check size of size_t - done
-- Check size of ssize_t
-- Check size of ssize_t - done
-- Check size of long long
-- Check size of long long - done
-- Check size of long
-- Check size of long - done
-- Check size of int
-- Check size of int - done
-- Check size of __int64
-- Check size of __int64 - failed
-- Check size of time_t
-- Check size of time_t - done
-- Looking for fchmod
-- Looking for fchmod - found
-- Looking for basename
-- Looking for basename - found
-- Looking for socket
-- Looking for socket - found
-- Looking for socketpair
-- Looking for socketpair - found
-- Looking for recv
-- Looking for recv - found
-- Looking for send
-- Looking for send - found
-- Looking for sendmsg
-- Looking for sendmsg - found
-- Looking for select
-- Looking for select - found
-- Looking for strdup
-- Looking for strdup - found
-- Looking for strtok_r
-- Looking for strtok_r - found
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for stricmp
-- Looking for stricmp - not found
-- Looking for strcmpi
-- Looking for strcmpi - not found
-- Looking for alarm
-- Looking for alarm - found
-- Looking for getppid
-- Looking for getppid - found
-- Looking for utimes
-- Looking for utimes - found
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for closesocket
-- Looking for closesocket - not found
-- Looking for sigsetjmp
-- Looking for sigsetjmp - found
-- Looking for getpass_r
-- Looking for getpass_r - not found
-- Looking for getpwuid
-- Looking for getpwuid - found
-- Looking for getpwuid_r
-- Looking for getpwuid_r - found
-- Looking for geteuid
-- Looking for geteuid - found
-- Looking for utime
-- Looking for utime - found
-- Looking for gmtime_r
-- Looking for gmtime_r - found
-- Looking for gethostbyname_r
-- Looking for gethostbyname_r - not found
-- Looking for signal
-- Looking for signal - found
-- Looking for strtoll
-- Looking for strtoll - found
-- Looking for strerror_r
-- Looking for strerror_r - found
-- Looking for siginterrupt
-- Looking for siginterrupt - found
-- Looking for getaddrinfo
-- Looking for getaddrinfo - found
-- Looking for freeaddrinfo
-- Looking for freeaddrinfo - found
-- Looking for pipe
-- Looking for pipe - found
-- Looking for ftruncate
-- Looking for ftruncate - found
-- Looking for getpeername
-- Looking for getpeername - found
-- Looking for getsockname
-- Looking for getsockname - found
-- Looking for if_nametoindex
-- Looking for if_nametoindex - found
-- Looking for getrlimit
-- Looking for getrlimit - found
-- Looking for setlocale
-- Looking for setlocale - found
-- Looking for setmode
-- Looking for setmode - found
-- Looking for setrlimit
-- Looking for setrlimit - found
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for mach_absolute_time
-- Looking for mach_absolute_time - found
-- Looking for inet_ntop
-- Looking for inet_ntop - found
-- Looking for inet_pton
-- Looking for inet_pton - found
-- Looking for fsetxattr
-- Looking for fsetxattr - found
-- Performing Curl Test HAVE_FSETXATTR_5
-- Performing Curl Test HAVE_FSETXATTR_5 - Failed
-- Performing Curl Test HAVE_FSETXATTR_6
-- Performing Curl Test HAVE_FSETXATTR_6 - Success
-- Check size of sa_family_t
-- Check size of sa_family_t - done
-- Check size of ADDRESS_FAMILY
-- Check size of ADDRESS_FAMILY - failed
-- Looking for sigaction
-- Looking for sigaction - found
-- Performing Curl Test HAVE_FCNTL_O_NONBLOCK
-- Performing Curl Test HAVE_FCNTL_O_NONBLOCK - Success
-- Performing Curl Test HAVE_IOCTLSOCKET
-- Performing Curl Test HAVE_IOCTLSOCKET - Failed
-- Performing Curl Test HAVE_IOCTLSOCKET_CAMEL
-- Performing Curl Test HAVE_IOCTLSOCKET_CAMEL - Failed
-- Performing Curl Test HAVE_IOCTLSOCKET_CAMEL_FIONBIO
-- Performing Curl Test HAVE_IOCTLSOCKET_CAMEL_FIONBIO - Failed
-- Performing Curl Test HAVE_IOCTLSOCKET_FIONBIO
-- Performing Curl Test HAVE_IOCTLSOCKET_FIONBIO - Failed
-- Performing Curl Test HAVE_IOCTL_FIONBIO
-- Performing Curl Test HAVE_IOCTL_FIONBIO - Success
-- Performing Curl Test HAVE_IOCTL_SIOCGIFADDR
-- Performing Curl Test HAVE_IOCTL_SIOCGIFADDR - Success
-- Performing Curl Test HAVE_SETSOCKOPT_SO_NONBLOCK
-- Performing Curl Test HAVE_SETSOCKOPT_SO_NONBLOCK - Failed
-- Performing Curl Test TIME_WITH_SYS_TIME
-- Performing Curl Test TIME_WITH_SYS_TIME - Success
-- Performing Curl Test HAVE_O_NONBLOCK
-- Performing Curl Test HAVE_O_NONBLOCK - Failed
-- Performing Curl Test HAVE_GETHOSTBYNAME_R_3
-- Performing Curl Test HAVE_GETHOSTBYNAME_R_3 - Failed
-- Performing Curl Test HAVE_GETHOSTBYNAME_R_5
-- Performing Curl Test HAVE_GETHOSTBYNAME_R_5 - Failed
-- Performing Curl Test HAVE_GETHOSTBYNAME_R_6
-- Performing Curl Test HAVE_GETHOSTBYNAME_R_6 - Failed
-- Performing Curl Test HAVE_GETHOSTBYNAME_R_3_REENTRANT
-- Performing Curl Test HAVE_GETHOSTBYNAME_R_3_REENTRANT - Failed
-- Performing Curl Test HAVE_GETHOSTBYNAME_R_5_REENTRANT
-- Performing Curl Test HAVE_GETHOSTBYNAME_R_5_REENTRANT - Failed
-- Performing Curl Test HAVE_GETHOSTBYNAME_R_6_REENTRANT
-- Performing Curl Test HAVE_GETHOSTBYNAME_R_6_REENTRANT - Failed
-- Performing Curl Test HAVE_IN_ADDR_T
-- Performing Curl Test HAVE_IN_ADDR_T - Success
-- Performing Curl Test HAVE_BOOL_T
-- Performing Curl Test HAVE_BOOL_T - Success
-- Performing Curl Test STDC_HEADERS
-- Performing Curl Test STDC_HEADERS - Success
-- Performing Curl Test HAVE_FILE_OFFSET_BITS
-- Performing Curl Test HAVE_FILE_OFFSET_BITS - Success
-- Performing Curl Test HAVE_VARIADIC_MACROS_C99
-- Performing Curl Test HAVE_VARIADIC_MACROS_C99 - Success
-- Performing Curl Test HAVE_VARIADIC_MACROS_GCC
-- Performing Curl Test HAVE_VARIADIC_MACROS_GCC - Success
-- Performing Curl Test HAVE_ATOMIC
-- Performing Curl Test HAVE_ATOMIC - Success
-- Check size of off_t
-- Check size of off_t - done
-- Check size of curl_off_t
-- Check size of curl_off_t - done
-- Check size of curl_socket_t
-- Check size of curl_socket_t - done
-- Performing Curl Test HAVE_GLIBC_STRERROR_R
-- Performing Curl Test HAVE_GLIBC_STRERROR_R - Failed
-- Performing Curl Test HAVE_POSIX_STRERROR_R
-- Performing Curl Test HAVE_POSIX_STRERROR_R - Success
-- Performing Curl Test HAVE_CLOCK_GETTIME_MONOTONIC
-- Performing Curl Test HAVE_CLOCK_GETTIME_MONOTONIC - Success
-- Performing Curl Test HAVE_BUILTIN_AVAILABLE
-- Performing Curl Test HAVE_BUILTIN_AVAILABLE - Success
-- Performing Test HAVE_MSG_NOSIGNAL
-- Performing Test HAVE_MSG_NOSIGNAL - Success
-- Performing Test HAVE_STRUCT_TIMEVAL
-- Performing Test HAVE_STRUCT_TIMEVAL - Success
-- Check size of struct sockaddr_storage
-- Check size of struct sockaddr_storage - done
-- Performing Test HAVE_WRITABLE_ARGV
-- Performing Test HAVE_WRITABLE_ARGV - Success
-- Enabled features: SSL IPv6 unixsockets libz AsynchDNS Largefile alt-svc HSTS NTLM HTTPS-proxy threadsafe
-- Enabled protocols: DICT FILE FTP FTPS GOPHER GOPHERS HTTP HTTPS IMAP IMAPS MQTT POP3 POP3S RTSP SCP SFTP SMB SMBS SMTP SMTPS TELNET TFTP
-- Enabled SSL backends: OpenSSL
-- Configuring incomplete, errors occurred!
See also "/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/curl/arm64-osx-dbg/CMakeFiles/CMakeOutput.log".
See also "/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/curl/arm64-osx-dbg/CMakeFiles/CMakeError.log".
ninja: build stopped: subcommand failed.

Additional context
vcpkg.json
{
  "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
  "name": "lichtsteuerung",
  "version-string": "2.0 $.0",
  "dependencies": [
    {
      "name": "curl",
      "default-features": false,
      "features": [
        "ssh"
      ]
    }
  ],
  "$overrides": [
    {
      "name": "capstone",
      "version": "4.0.1-120373dc"
    }
  ],
  "$builtin-baseline": "338f99eed499b6df1628829e40695b396a70a1f7"
}

Duplicate of #32258


yt.publish_date returning blank value #138 revisit

Different results across OS & python versions on YouTube.from_id(video_id).publish_date attribute, not linked to [pytubefix](https://github.com/JuanBindez/pytubefix) 6.13.0 code, seems to come from watch_html value set by _execute_request call's use of from urllib.request import Request, urlopen...  Large mismatch in length of watch_html noted while arguments in Request(url, headers=base_headers, method=method, data=data) call are identical...

# from urllib.request import Request, urlopen
from pytubefix import YouTube, extract
from datetime import datetime
import re

def main():
    video_id = 'BBxdzypLalg'
    url = f"https://www.youtube.com/watch?v={video_id}"
    # extract.publish_date = __publish_date
    vidObj = YouTube.from_id(video_id)
    print(len(vidObj.watch_html))
    print(vidObj.publish_date)
    print(type(vidObj.publish_date))
    print('# # # round 2')
    extract.publish_date = __publish_date
    vidObj = YouTube.from_id(video_id)
    print(len(vidObj.watch_html))
    print(vidObj.publish_date)
    print(type(vidObj.publish_date))
    return

def __publish_date(watch_html):
    print(f'len(watch_html):  {len(watch_html)}')
    try:
        REGEX_1 = r'(?<=itemprop="datePublished" content=")\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}[+-]\d{2}:\d{2}'
        REGEX_2 = r'(?<="publishDate":{"simpleText":")\w+ \d{1,2}, \d{4}'
        REGEX_3 = r'(?<="publishDate":")\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}[+-]\d{2}:\d{2}'
        result = re.search(
            REGEX_1,
            watch_html)
        if result:
            print(REGEX_1)
            # return datetime.fromisoformat(result.group(0))
        result = re.search(
            REGEX_2,
            watch_html)
        if result:
            print(REGEX_2)
            # return datetime.strptime(result.group(0), '%b %d, %Y')
        result = re.search(
            REGEX_3,
            watch_html)
        if result:
            print(REGEX_3)
            # return datetime.strptime(result.group(0), '%b %d, %Y')
        return datetime.now() # # # dummy value...
    except AttributeError as e:
        print(e)
        return None

if __name__=='__main__':
    main()

yields, with with pytubefix 6.13.0 MacOS Monterey 12.7.6, python 3.11.8:

1033817
2024-08-21 07:32:12-07:00
<class 'datetime.datetime'>
# # # round 2
1035229
len(watch_html):  1035229
(?<=itemprop="datePublished" content=")\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}[+-]\d{2}:\d{2}
(?<="publishDate":{"simpleText":")\w+ \d{1,2}, \d{4}
(?<="publishDate":")\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}[+-]\d{2}:\d{2}
2024-08-21 13:42:29.095798
<class 'datetime.datetime'>

while with pytubefix 6.13.0 on python 3.11.2, Debian GNU/Linux 12 (bookworm) yields

975900
None
<class 'NoneType'>
# # # round 2
941545
len(watch_html):  941545
(?<="publishDate":{"simpleText":")\w+ \d{1,2}, \d{4}
2024-08-21 20:43:20.558797
<class 'datetime.datetime'>

Expected behavior
Should yield same YouTube.from_id(video_id).publish_date attributes across platforms and python versions...

Desktop (please complete the following information):
see above comparisons

Additional context
Noted while setting up an automation script in AWS ec2, identical code not performing as it's performed in local environment.

Oh boy... 170, noticing my ec2 is also throwing BBxdzypLalg This request has been detected as a bot, please try again or log in to view 170 and 174, looks like the likely culprit is not python or OS version differences but flagged IP address...