NI Package Manager (NIPM)

cancel
Showing results for 
Search instead for 
Did you mean: 

Support *.nipkg files hosted on GitHub Releases

Highlighted

GitHub lets us host downloadable packages for our projects. Example:
https://github.com/ni/niveristand-scan-engine-ethercat-custom-device/releases/

 

Each package is given a nice clear URL like
https://github.com/ni/niveristand-scan-engine-ethercat-custom-device/releases/download/v19.0.0/ni-sc...

 

How nice it would be if my NIPM feed could point to GitHub-hosted packages! This way, I don't need my own file server. So, I created a custom feed; the contents of Packages.gz are:

 

 

Architecture: windows_all
CompatibilityVersion: 190006
Description: Provides support for the NI Scan Engine and EtherCAT custom device for NI VeriStand 2018.
DisplayName: NI Scan Engine and EtherCAT for VeriStand 2018
DisplayVersion: 19.0.0
Eula: eula-ni-standard
Filename: https://github.com/ni/niveristand-scan-engine-ethercat-custom-device/releases/download/v19.0.0/ni-scan-engine-veristand-2018-support_19.0.0.11_windows_all.nipkg
Homepage: http://www.ni.com
LanguageSupport: en
MD5sum: be9d301d98465ac3157fbb8b6cee370b
Maintainer: National Instruments <support@ni.com>
Package: ni-scan-engine-veristand-2018-support
Plugin: file
Priority: standard
Section: Add-Ons
Size: 38198876
UserVisible: yes
Version: 19.0.0.11

 

 

Alas, NIPM does not like it ("Redirection to another URL is forbidden"):

 

nipkg-redirection-forbidden.png

 

It turns out that the nice URL above actually redirects to an Amazon cloud storage location, and the final URL is like

https://github-production-release-asset-2e65be.s3.amazonaws.com/150638172/d0544200-8d25-11e9-9a52-58...

 

Everything works fine if my feed points to a different server and the URL doesn't get redirected.

 

Could the restriction on redirections be lifted somehow? Perhaps there could be an optional property in the feed to specify that a particular Filename is allowed to redirect elsewhere. Perhaps the feed creator can nominate one or more "whitelisted" domains for a particular Filename's redirection.

Certified LabVIEW Developer

Message 1 of 3
(257 Views)

Posted to the Idea Exchange: https://forums.ni.com/t5/Additional-NI-Software-Idea/NIPM-Allow-feeds-to-use-nipkg-files-that-are-ho...

 

(I couldn't find a dedicated NIPM Idea Exchange, so I put it in the "Additional NI Software" exchange)

Certified LabVIEW Developer

Message 2 of 3
(181 Views)

JKSH,

NI now has created a NI Package Management Idea Exchange now.

__________________________________
Bill Eisenhower
Certified LabVIEW & TestStand Developer
0 Kudos
Message 3 of 3
(55 Views)