File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828 - uses : actions/checkout@v4
2929 - uses : pkgxdev/setup@v3
3030 - run : ./pkgm.ts i git
31+
32+ - run : /usr/local/bin/git --version
33+
34+ - run : ./pkgm.ts i pkgx.sh/brewkit
35+ - run : /usr/local/bin/bk --help
Original file line number Diff line number Diff line change @@ -148,6 +148,12 @@ async function sudo_install(
148148) {
149149 const dst = "/usr/local" ;
150150 for ( const pkg_prefix of pkg_prefixes ) {
151+ if ( pkg_prefix == "pkgx.sh" ) {
152+ // don’t overwrite ourselves
153+ // * https://github.com/pkgxdev/pkgm/issues/14
154+ // * https://github.com/pkgxdev/pkgm/issues/17
155+ continue ;
156+ }
151157 // create /usr/local/pkgs/${prefix}
152158 await mirror_directory ( "/usr/local/pkgs" , pkgx_dir , pkg_prefix ) ;
153159 // symlink /usr/local/pkgs/${prefix} to /usr/local
@@ -158,6 +164,9 @@ async function sudo_install(
158164
159165 for ( const [ project , env ] of Object . entries ( runtime_env ) ) {
160166 const pkg_prefix = pkg_prefixes . find ( ( x ) => x . startsWith ( project ) ) ! ;
167+ if ( pkg_prefix == "pkgx.sh" ) {
168+ continue ;
169+ }
161170 for ( const bin of [ "bin" , "sbin" ] ) {
162171 const bin_prefix = join ( "/usr/local/pkgs" , pkg_prefix , bin ) ;
163172
You can’t perform that action at this time.
0 commit comments